aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-02-11 02:13:29 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-02-11 02:13:29 +0000
commita76e4a0c08f3233d319eed91dd46e8d2e573f901 (patch)
tree3a63588245b85ed725d86d7a8b12c89ba88a154b /Tools
parentc0d1c2939bb6c09f8ff7991cea15b942d95ac9b1 (diff)
downloadports-a76e4a0c08f3233d319eed91dd46e8d2e573f901.tar.gz
ports-a76e4a0c08f3233d319eed91dd46e8d2e573f901.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/reportload6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/reportload b/Tools/portbuild/scripts/reportload
index 25f65bd6d005..78dc39885a76 100755
--- a/Tools/portbuild/scripts/reportload
+++ b/Tools/portbuild/scripts/reportload
@@ -1,4 +1,8 @@
#!/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
@@ -6,7 +10,7 @@ pb=/var/portbuild
. ${pb}/portbuild.conf
me=$(hostname -s)
-tmpfile=${pb}/${me}
+tmpfile=${scratchdir}/${me}
while true; do
num=$(echo $(ls -1d ${pb}/*/chroot/*/used 2>/dev/null| wc -l))