mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
fix: do not go below 0 for execution time
This commit is contained in:
parent
552fda014b
commit
78b7270b4c
|
@ -202,6 +202,9 @@ func (env *environment) lastErrorCode() int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (env *environment) executionTime() float64 {
|
func (env *environment) executionTime() float64 {
|
||||||
|
if *env.args.ExecutionTime < 0 {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
return *env.args.ExecutionTime
|
return *env.args.ExecutionTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue