Skip to content

Small and simple tools to show system stats unique to macOS.

License

Notifications You must be signed in to change notification settings

hmr/os-stats-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

os-stats-tools

Simple and small tools to show various system stats. These tools are intended to be used in tmux's status line.

print_uptime

To show uptime of macOS in human friendly style like.

$ ./bin/print_uptime
1M2w3d14h50m

This means the uptime is "1 month, 2 weeks, 3 days, 14 hours and 50 minutes".

Compile

Clang or GCC is required to compile.

$ clang -o print_uptime print_uptime.c

print_mpressure

To calculate and show memory pressure.

$ ./bin/print_mpressure
25.4

This means the memory pressure is 25.4%.

About

Small and simple tools to show system stats unique to macOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published