File: load.sh

package info (click to toggle)
ledcontrol 0.5.2-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 796 kB
  • ctags: 259
  • sloc: ansic: 3,264; sh: 848; makefile: 180; perl: 49
file content (9 lines) | stat: -rw-r--r-- 121 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
#!/bin/sh

led_load () {
    LOAD=`cat /proc/loadavg | awk '{ print $1 }'`
    SUCCESS="$SUCCESS $LOAD"
    return 0
}