Commit f7387fd6 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix; do not burn CPU when nologins is set.

parent b73bc375
......@@ -178,8 +178,10 @@ sub ProbeCMs()
}
while (1) {
next
if (NoLogins());
if (NoLogins()) {
sleep(5);
next;
}
print "Running at ".
POSIX::strftime("20%y-%m-%d %H:%M:%S", localtime()) . "\n";
......
......@@ -350,8 +350,10 @@ sub ReportLockedSlices()
}
while (1) {
next
if (NoLogins());
if (NoLogins()) {
sleep(5);
next;
}
print "Running at ".
POSIX::strftime("20%y-%m-%d %H:%M:%S", localtime()) . "\n";
......
......@@ -387,8 +387,10 @@ sub RenewSlices()
}
while (1) {
next
if (NoLogins());
if (NoLogins()) {
sleep(5);
next;
}
print "Running at ".
POSIX::strftime("20%y-%m-%d %H:%M:%S", localtime()) . "\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment