Skip to content

Commit

Permalink
Add perfdata_cutoff to NEMS SST.
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Sep 10, 2019
1 parent 3592214 commit 06c479e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perfdata-purge
Expand Up @@ -20,6 +20,9 @@
$output .= $line;
}
file_put_contents($file,$output);
echo 'Purged all perfdata that is older than ' . $cutoff . ' days.';
} else {
echo 'There was no perfdata older than ' . $cutoff . ' days. Nothing purged.';
}
}
} else {
Expand Down

0 comments on commit 06c479e

Please sign in to comment.