'Generic Commit'
Some checks failed
Build-Test-Publish / build (push) Failing after 11s

This commit is contained in:
Your Name
2025-06-15 21:02:09 +12:00
parent 0a6efbded9
commit bc0d0ea889
2 changed files with 9 additions and 4 deletions

View File

@ -62,8 +62,8 @@ get_last_commit_hours() {
local current_timestamp=$(date +%s)
local diff_seconds=$((current_timestamp - last_commit_timestamp))
# Convert to hours with decimal precision
local hours_ago=$(echo "scale=1; $diff_seconds / 3600" | bc)
# Convert to hours with decimal precision using awk (more portable than bc)
local hours_ago=$(awk "BEGIN {printf \"%.1f\", $diff_seconds / 3600}")
# Ensure leading zero for values less than 1
if [[ $hours_ago =~ ^\. ]]; then