From b99e3394f04fe5a314ef6fa168fcf7744566f982 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 18 Mar 2023 15:12:51 +0100 Subject: [PATCH] Improved Plan B scripts. --- Plan Borg/bin/doreport | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Plan Borg/bin/doreport b/Plan Borg/bin/doreport index 32749f3..56f1391 100755 --- a/Plan Borg/bin/doreport +++ b/Plan Borg/bin/doreport @@ -20,6 +20,10 @@ convert_duration() if [[ $input =~ ([0-9\.]+)\ seconds ]]; then seconds=${BASH_REMATCH[1]} seconds=$(roundn $seconds) + if [ $seconds -eq "60" ]; then + seconds=0 + minutes=$(($minutes+1)) + fi else seconds=0 fi