From b24c85d4662283eceada57bc3fbc54ca72cf37dc Mon Sep 17 00:00:00 2001 From: fborello-lambda Date: Fri, 24 Jan 2025 12:40:09 -0300 Subject: [PATCH] dbg: test --- .github/workflows/flamegraph_reporter.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/flamegraph_reporter.yaml b/.github/workflows/flamegraph_reporter.yaml index 2b3318116..77819cd8f 100644 --- a/.github/workflows/flamegraph_reporter.yaml +++ b/.github/workflows/flamegraph_reporter.yaml @@ -482,14 +482,19 @@ jobs: # LEVM HTML sed -i "s/{{LAST_UPDATE}}/$(TZ='Etc/GMT+3' date +'%Y-%m-%dT%H:%M:%S')/g" pages/levm.html time_levm=$(grep "time_levm" time_levm.txt/time_levm.txt | cut -d '=' -f2) - minutes=$((time_levm / 60)) - seconds=$((time_levm % 60)) - time_levm_str=${minutes} minutes ${seconds} seconds" + + minutes=$(bc -l <<< "scale=0; $time_levm / 60") + seconds=$(bc -l <<< "scale=0; $time_levm % 60") + + time_levm_str="${minutes} minutes ${seconds} seconds" sed -i "s/{{LEVM_TIME}}/${time_levm_str}/g" pages/levm.html + time_revm=$(grep "time_revm" time_revm.txt/time_revm.txt | cut -d '=' -f2) - minutes=$((time_revm / 60)) - seconds=$((time_revm % 60)) - time_revm_str=${minutes} minutes ${seconds} seconds" + + minutes=$(bc -l <<< "scale=0; $time_revm / 60") + seconds=$(bc -l <<< "scale=0; $time_revm % 60") + + time_revm_str="${minutes} minutes ${seconds} seconds" sed -i "s/{{REVM_TIME}}/${time_revm_str}/g" pages/levm.html - name: Setup Pages