Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Add loadavg script
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Jul 3, 2016
1 parent 09e56ee commit ceaf6a7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/bin/loadavg
@@ -0,0 +1,14 @@
#!/bin/sh

main() {
case $OSTYPE in
darwin*)
sysctl vm.loadavg | cut -d ' ' -f 3-5
;;
linux*)
cut -d " " -f 1-4 /proc/loadavg
;;
esac
}

main

0 comments on commit ceaf6a7

Please sign in to comment.