mirror of https://github.com/mikaku/Monitorix.git
small update
This commit is contained in:
parent
6cf9481143
commit
ad5127eeb5
|
@ -82,7 +82,7 @@ sub disk_init {
|
||||||
rename($rrd, "$rrd.bak");
|
rename($rrd, "$rrd.bak");
|
||||||
}
|
}
|
||||||
if(scalar(@rra) != 12 + (4 * $config->{max_historic_years})) {
|
if(scalar(@rra) != 12 + (4 * $config->{max_historic_years})) {
|
||||||
logger("$myself: Detected size mismatch between 'max_historic_years' option (" . $config->{max_historic_years} . ") and $rrd (" . ((scalar(@rra) -12) / 4) . "). Resizing it accordingly. All historic data will be lost. Backup file created.");
|
logger("$myself: Detected size mismatch between 'max_historic_years' (" . $config->{max_historic_years} . ") and $rrd (" . ((scalar(@rra) -12) / 4) . "). Resizing it accordingly. All historic data will be lost. Backup file created.");
|
||||||
rename($rrd, "$rrd.bak");
|
rename($rrd, "$rrd.bak");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue