From 55b0af1d33a8395472474d068e04d18af107d991 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Sun, 24 Dec 2023 17:02:20 +0100 Subject: [PATCH] fix: minor improvement to parsing disk space --- backend/scripts/storage.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/scripts/storage.sh b/backend/scripts/storage.sh index d29397f..cf5c150 100644 --- a/backend/scripts/storage.sh +++ b/backend/scripts/storage.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Returns used and free disk space of all machines in the cluster -# Example output: steffe8 9.2G 47G +# Returns total and used disk space (in GB) of all machines in the cluster +# Example output: steffe16 8.9 47 -parallel --nonall --slf /home/rock/macchine.txt 'echo $HOSTNAME $(df -Ph | grep mmcblk0p5 | awk '\''{print $3" "$4}'\'')' +parallel --nonall --slf /home/rock/macchine.txt 'echo $HOSTNAME $(df -Ph | grep mmcblk0p5 | awk '\''{print $2" "$3}'\'' | sed '\''s/G//g'\'')'