From 2032ccfea8fb0237d8923b5c18a42471d9459b89 Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Wed, 2 Aug 2023 14:33:32 +0200 Subject: [PATCH] Plot power usage from 'detailed_power" report --- monitoring/logs/scripts/plot_energy_logs.sh | 47 +++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 monitoring/logs/scripts/plot_energy_logs.sh diff --git a/monitoring/logs/scripts/plot_energy_logs.sh b/monitoring/logs/scripts/plot_energy_logs.sh new file mode 100755 index 0000000..e027b3f --- /dev/null +++ b/monitoring/logs/scripts/plot_energy_logs.sh @@ -0,0 +1,47 @@ +#!/bin/bash +if [ ! -r $1 ]; then + echo "File $1 is not readable. Exiting." + exit +fi + +fn=$1 +if [[ $1 == *gz ]]; then + fn="