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