Skip to content
Permalink
Browse files

Move to foreach

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 10, 2019
1 parent b57256a commit 63982ed5a11b06b101ef8d28f6f359ac6e639b52
Showing with 1 addition and 2 deletions.
  1. +1 −2 perfdata-purge
@@ -7,8 +7,7 @@
$perfdata = new SplFileObject($file);
$counter = 0;
while (!$perfdata->eof()) {
$line = $perfdata->fgets();
foreach ($perfdata as $line) {
$tmp = explode('||',$line);
$timestamp = intval($tmp[0]);
if ($timestamp < strtotime($cutoff . ' days ago')) {

0 comments on commit 63982ed

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