From a5f60fc0e7c5ec0504d9284cc48abfe8f5fa7a22 Mon Sep 17 00:00:00 2001 From: ipitio <21136719+ipitio@users.noreply.github.com> Date: Fri, 26 Jan 2024 05:06:05 -0500 Subject: [PATCH] truncate --- advanced/Scripts/webpage.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index a99a7ba5c0..7947b1930b 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -640,6 +640,11 @@ generate_systemd_calendar() { local hour=$(echo "$current_second / 3600" | bc) local minute=$(echo "($current_second % 3600) / 60" | bc) local second=$(echo "$current_second % 60" | bc) + + hour=${hour%.*} + minute=${minute%.*} + second=${second%.*} + freq_entries+=("*-*-* $(printf "%02d:%02d:%02d" $hour $minute $second)") current_second=$(echo "$current_second + $total_seconds" | bc) done