This commit is contained in:
2026-02-27 21:20:08 -07:00
commit 2f35c9dd34
12 changed files with 203 additions and 0 deletions

20
internal/output/stdout.go Normal file
View 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,
)
}