Update default.inc

This commit is contained in:
2019-07-25 23:05:35 -05:00
parent 51f23d3904
commit 5982909a2b

View File

@@ -128,11 +128,17 @@ SHOW_TIME() {
t=''
if [ $day != 0 ]; then
t+="${day} days, ";
if((min>29));then ((hour=hour+1)); fi
if((min>29)); then
((hour=hour+1))
if((hour>23)); then
((hour=0))
((day=day+1))
fi
fi
t+="${day} days";
fi
if [ $hour != 0 ]; then t+="${hour} hours, "; fi
if [ $min != 0 ] && [ $day = 0 ]; then t+="${min} mins"; fi
if [ $hour != 0 ]; then t+=", ${hour} hours"; fi
if [ $min != 0 ] && [ $day = 0 ]; then t+=", ${min} mins"; fi
echo ${t}
}