all repos — shwarp-tools @ 98c8526dd9a6be5e70890b5c75d009a61d14f4d9

Tools and scripts

tool(build-time): add big breaks

More than 2 days without a change.
shwarp
Mon, 26 Oct 2026 18:45:06 -0400
commit

98c8526dd9a6be5e70890b5c75d009a61d14f4d9

parent

a791a2217ece065aea5652e46ee9892c69832dbb

1 files changed, 9 insertions(+), 3 deletions(-)

jump to
M build-time → build-time

@@ -14,11 +14,12 @@

max_break_minutes=30 max_break_seconds=$((max_break_minutes*60)) -echo -e "changes\tbld t\tbrk t\tbreaks" +echo -e "changes\tbld t\tbrk t\tbreaks\tbig breaks" echo "===============================================" i=$((0)) breaks=$((0)) +big_breaks=$((0)) break_seconds=$((0)) build_seconds=$((0)) build_intervals=()

@@ -42,10 +43,15 @@ else

break_seconds=$(echo "(${timestamp}-${prev_timestamp})" | bc) - ((breaks++)) + if [[ $seconds -gt $((60*60*24*2)) ]] + then + ((big_breaks++)) + else + ((breaks++)) + fi fi - echo -ne "\r${i}\t${build_seconds}\t${break_seconds}\t${breaks}" + echo -ne "\r${i}\t${build_seconds}\t${break_seconds}\t${breaks}\t${big_breaks}" fi ((i++))