Skip to content

Commit

Permalink
add ref to /proc manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
bioe007 committed Feb 29, 2024
1 parent 85e4051 commit f055583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ Is there a faster way to fetch all this data than reading a text file each time?

## References

- [/proc](https://www.man7.org/linux/man-pages/man5/proc.5.html)
- [/proc/loadavg](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/4/html/reference_guide/s2-proc-loadavg)


2 changes: 2 additions & 0 deletions synopsys.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func main() {
if err != nil {
log.Fatal("disk average failure", err)
}
// TODO
fmt.Println("Got disks: ", len(disks))

ut, err := uptime.Read_uptime()
Expand All @@ -63,6 +64,7 @@ func main() {
"up:%s %s cpu:%s\nmem: %s\n",
ut.HoursMinutes(),
ld.InfoPrint(),
// TODO - accept as parameter
c.InfoPrint(4),
m.InfoPrint(),
)
Expand Down

0 comments on commit f055583

Please sign in to comment.