23 lines
347 B
Go
23 lines
347 B
Go
package output
|
|
|
|
import (
|
|
"fmt"
|
|
"git.jthan.io/jonathan/gobar/internal/collectors"
|
|
)
|
|
|
|
func Print(c *collectors.StatusInfo) {
|
|
fmt.Printf(
|
|
"BAT: %d%% (%s) | LOAD: %.2f %.2f %.2f | %d-%02d-%02d %02d:%02d\n",
|
|
c.BatteryPercent,
|
|
c.BatteryStatus,
|
|
c.CPULoad1,
|
|
c.CPULoad5,
|
|
c.CPULoad15,
|
|
c.Year,
|
|
c.Month,
|
|
c.Day,
|
|
c.Hour,
|
|
c.Minute,
|
|
)
|
|
}
|