mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
parent
d2e50e9c87
commit
698cbc4135
|
@ -77,7 +77,7 @@ func (s *SystemInfo) Init(props properties.Properties, env environment.Environme
|
|||
}
|
||||
// times
|
||||
processorTimes, err := cpu.Percent(0, false)
|
||||
if err == nil {
|
||||
if err == nil && len(processorTimes) > 0 {
|
||||
s.Times = processorTimes[0]
|
||||
}
|
||||
// cpu
|
||||
|
|
Loading…
Reference in a new issue