diff options
Diffstat (limited to 'g5k/recordEnergy.sh')
| -rwxr-xr-x[-rw-r--r--] | g5k/recordEnergy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g5k/recordEnergy.sh b/g5k/recordEnergy.sh index fc935a1..c345136 100644..100755 --- a/g5k/recordEnergy.sh +++ b/g5k/recordEnergy.sh @@ -9,7 +9,7 @@ nodeName="$2" outputFile="$5" wattmeter=$(curl -s https://api.grid5000.fr/stable/sites/lyon/clusters/${clusterName}/nodes/${nodeName}.json | jq -r '.sensors.power.via.pdu[0].uid') port=$(curl -s https://api.grid5000.fr/stable/sites/lyon/pdus/${wattmeter}.json | jq -r '.ports|to_entries|map(select(.value=="'${nodeName}'"))[0].key') -energyEntry=$(( 5 + port) # Define the entry in the CSV that correspond to the correct energy value +energyEntry=$(( 5 + port )) # Define the entry in the CSV that correspond to the correct energy value if [ -z $wattmeter ] || [ -z $port ] then |
