Fix issue when deciseconds are the same
parent
f2b4facac8
commit
056237c806
|
|
@ -37,7 +37,7 @@ _command_duration() {
|
||||||
# seconds
|
# seconds
|
||||||
command_duration=$(( current_time_seconds - command_start_sseconds ))
|
command_duration=$(( current_time_seconds - command_start_sseconds ))
|
||||||
|
|
||||||
if [ $current_time_deciseconds -gt $command_start_deciseconds ]; then
|
if (( current_time_deciseconds >= command_start_deciseconds )); then
|
||||||
deciseconds=$(( (current_time_deciseconds - command_start_deciseconds) ))
|
deciseconds=$(( (current_time_deciseconds - command_start_deciseconds) ))
|
||||||
else
|
else
|
||||||
((command_duration-=1))
|
((command_duration-=1))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue