Fix issue when deciseconds are the same

pull/1683/head
BarbUk 2020-11-14 12:49:44 +04:00
parent f2b4facac8
commit 056237c806
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ _command_duration() {
# seconds
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) ))
else
((command_duration-=1))