terrible smart driver
This commit is contained in:
@@ -2,6 +2,7 @@ package app
|
||||
|
||||
import (
|
||||
"finally-a-monolithic-linux-hw-monitor/app/common"
|
||||
"finally-a-monolithic-linux-hw-monitor/app/disks"
|
||||
"finally-a-monolithic-linux-hw-monitor/app/mem"
|
||||
"finally-a-monolithic-linux-hw-monitor/app/proc"
|
||||
"fmt"
|
||||
@@ -28,6 +29,7 @@ func Run() {
|
||||
term := common.NewTerminal()
|
||||
proc, _ := proc.GetProc()
|
||||
mem, _ := mem.GetMem()
|
||||
disks, _ := disks.GetDisks()
|
||||
|
||||
ticker := time.NewTicker(1 * time.Second)
|
||||
defer ticker.Stop()
|
||||
@@ -36,6 +38,7 @@ func Run() {
|
||||
|
||||
proc.Render(term)
|
||||
mem.Render(term)
|
||||
disks.Render(term)
|
||||
|
||||
term.End()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user