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