mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 09:50:06 +00:00
round to seconds instead of truncating
This commit is contained in:
parent
0eff9fe1b9
commit
06aa8da96e
1 changed files with 1 additions and 1 deletions
|
@ -926,7 +926,7 @@ prompt_command_execution_time() {
|
|||
|
||||
if (( _P9K_COMMAND_DURATION < 60 )); then
|
||||
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION == 0 ]]; then
|
||||
local -i sec=_P9K_COMMAND_DURATION
|
||||
local -i sec=$((_P9K_COMMAND_DURATION + 0.5))
|
||||
else
|
||||
local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION sec=_P9K_COMMAND_DURATION
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue