init
This commit is contained in:
20
internal/output/stdout.go
Normal file
20
internal/output/stdout.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package output
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.jthan.io/jonathan/gobar/internal/collectors"
|
||||
)
|
||||
|
||||
func Print(c *collectors.StatusInfo) {
|
||||
fmt.Printf(
|
||||
"LOAD: %.2f %.2f %.2f | %d-%d-%d %d:%d\n",
|
||||
c.CPULoad1,
|
||||
c.CPULoad5,
|
||||
c.CPULoad15,
|
||||
c.Year,
|
||||
c.Month,
|
||||
c.Day,
|
||||
c.Hour,
|
||||
c.Minute,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user