all repos — shwarp-tools @ f080e33d155a7417acd7d18efbbcd52a46bfeb33

Tools and scripts

tool(build-time): replace magic number with variable

Yaya, this combination of numbers and operators is pretty obvious, but
let's just make things explicit.

Actually I'm not sure why I'm spending this much time time gilding this
bash script. I guess I just like it.
shwarp
Mon, 26 Oct 2026 19:02:03 -0400
commit

f080e33d155a7417acd7d18efbbcd52a46bfeb33

parent

98c8526dd9a6be5e70890b5c75d009a61d14f4d9

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M build-time → build-time

@@ -13,6 +13,7 @@ GIT_DIR=$(echo ${1::-"$((${#MAP_FILENAME} + 1))"})

max_break_minutes=30 max_break_seconds=$((max_break_minutes*60)) +day_seconds=$((60*60*24)) echo -e "changes\tbld t\tbrk t\tbreaks\tbig breaks" echo "==============================================="

@@ -43,7 +44,7 @@ else

break_seconds=$(echo "(${timestamp}-${prev_timestamp})" | bc) - if [[ $seconds -gt $((60*60*24*2)) ]] + if [[ $seconds -gt $((day_seconds * 2)) ]] then ((big_breaks++)) else