aboutsummaryrefslogtreecommitdiff
path: root/Tools/portbuild/scripts/reportload
blob: 4f7e0a806c35741b2b7622bdcbc9b462354f0dd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# This is run on the clients to report their loads to the server.

# configurable variables
pb=/var/portbuild
arch=$1

. ${pb}/${arch}/portbuild.conf

num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l))
echo -n "$num "
uptime