mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only blast rrd upgrade notice to wall once
This commit is contained in:
parent
f5a57bb006
commit
fdd20aba30
@ -55,7 +55,10 @@ function create_new_rrd($rrdcreatecmd) {
|
||||
}
|
||||
|
||||
function migrate_rrd_format($rrdoldxml, $rrdnewxml) {
|
||||
exec("echo 'Converting RRD configuration to new format. This might take a bit...' | wall");
|
||||
if(!file_exists("/tmp/rrd_notice_sent.txt")) {
|
||||
exec("echo 'Converting RRD configuration to new format. This might take a bit...' | wall");
|
||||
touch("/tmp/rrd_notice_sent.txt");
|
||||
}
|
||||
$numrraold = count($rrdoldxml['rra']);
|
||||
$numdsold = count($rrdoldxml['ds']);
|
||||
$numrranew = count($rrdnewxml['rra']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user