File: linuxload.sh.debdiff

package info (click to toggle)
netmrg 0.20-7
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,896 kB
  • ctags: 2,012
  • sloc: php: 9,401; sh: 4,791; cpp: 2,898; perl: 621; ansic: 381; makefile: 337; xml: 92; sql: 71; sed: 16
file content (14 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# usage linuxload.sh <item>
#   item can be 1, 2, or 3

if [ -f /proc/loadavg ]; then
#	if [ "$1" = "1" o "$1" = "2" -o "$1" = "3" ]; then
		cat /proc/loadavg | cut -d' ' -f$1
#	else
#		echo "U"
#	fi
else
	echo "U"
fi