Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rbochet
Created April 3, 2011 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbochet/900440 to your computer and use it in GitHub Desktop.
Save rbochet/900440 to your computer and use it in GitHub Desktop.
Should work on every unix, including OSX (doesn't rely on procfs)
max="3";load=$(uptime | cut -d":" -f4 | cut -d" " -f2 | sed s/,/./g);echo "http://chart.apis.google.com/chart?chxr=0,0,"$max"&chxt=y&chs=700x240&cht=gm&chds=0,"$max"&chd=t:"$load"&chl="$load"&chtt=$(hostname | sed s/.local//)+load+average"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment