aboutsummaryrefslogtreecommitdiff
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-02-22 22:26:23 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-02-22 22:26:23 +0000
commitc5150864d9f34ce589fef2e16be31dd233f2cf7a (patch)
tree170675ae7cbe501b4e8713e79fceafaf574693c3 /Tools/portbuild
parent34ba6e2ea43babc88d88a22a43a06a165c32c588 (diff)
downloadports-c5150864d9f34ce589fef2e16be31dd233f2cf7a.tar.gz
ports-c5150864d9f34ce589fef2e16be31dd233f2cf7a.zip
Notes
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/reportload16
1 files changed, 3 insertions, 13 deletions
diff --git a/Tools/portbuild/scripts/reportload b/Tools/portbuild/scripts/reportload
index 0044db5cc75c..4f7e0a806c35 100755
--- a/Tools/portbuild/scripts/reportload
+++ b/Tools/portbuild/scripts/reportload
@@ -1,8 +1,6 @@
#!/bin/sh
#
# This is run on the clients to report their loads to the server.
-# Every 5 seconds we concatenate the number of currently building ports with
-# the machine uptime and push it to the server.
# configurable variables
pb=/var/portbuild
@@ -10,14 +8,6 @@ arch=$1
. ${pb}/${arch}/portbuild.conf
-me=$(hostname -s)
-tmpfile=${scratchdir}/${me}
-
-while true; do
- num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l))
- echo -n "$num " > ${tmpfile}
- uptime >> ${tmpfile}
- scp -q ${tmpfile} ${user}@${master}:${pb}/${arch}/loads/
- rm -f ${tmpfile}
- sleep 5
-done
+num=$(echo $(ls -1d ${scratchdir}/*/chroot/*/used 2>/dev/null| wc -l))
+echo -n "$num "
+uptime