Commit f96d18ca authored by Ezequiel Pochiero's avatar Ezequiel Pochiero Committed by Marc Cornellà
Browse files

avit: fix handling of time since last commit (#7350)

parent f31ef202
...@@ -63,7 +63,7 @@ function _git_time_since_commit() { ...@@ -63,7 +63,7 @@ function _git_time_since_commit() {
sub_hours=$((hours % 24)) sub_hours=$((hours % 24))
sub_minutes=$((minutes % 60)) sub_minutes=$((minutes % 60))
if [ $hours -gt 24 ]; then if [ $hours -ge 24 ]; then
commit_age="${days}d" commit_age="${days}d"
elif [ $minutes -gt 60 ]; then elif [ $minutes -gt 60 ]; then
commit_age="${sub_hours}h${sub_minutes}m" commit_age="${sub_hours}h${sub_minutes}m"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment