Skip to content
Permalink
Browse files

Fix loop

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 10, 2019
1 parent 63982ed commit da1804c3e5d70fad553bf741ee99f2d64f9eb19d
Showing with 3 additions and 3 deletions.
  1. +3 −3 perfdata-purge
@@ -15,13 +15,13 @@
// Found some timestamps that are older than $cutoff.
// Delete those lines from $file using sed.
$result = shell_exec("/bin/sed -i '/^$timestamp||/d' $file");
// We changed the file, rewind!
$perfdata->rewind();
$counter++;
echo '.';
}
}
}
echo PHP_EOL;
$perfdata = null;
if ($counter > 0) {
@@ -33,5 +33,5 @@
} else {
echo 'perfdata will not be purged since no cutoff is specified in NEMS SST.';
}
echo PHP_EOL;
echo PHP_EOL . PHP_EOL;
?>

0 comments on commit da1804c

Please sign in to comment.
You can’t perform that action at this time.