From 5c4d383f80c325caa320bacee2a29e991103054b Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Tue, 27 Sep 2016 15:18:57 +0100 Subject: [PATCH] fix: Fixed the old port rrd migration code to work with new rrdtool functions (#4616) --- includes/polling/ports.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 79c0adcc1c..aa5ac09bbe 100644 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -226,7 +226,7 @@ $ports = $ports_mapped['ports']; // Rename any old RRD files still named after the previous ifIndex based naming schema. foreach ($ports_mapped['maps']['ifIndex'] as $ifIndex => $port_id) { foreach (array ('', '-adsl', '-dot3') as $suffix) { - $old_rrd_name = "port-$ifIndex$suffix.rrd"; + $old_rrd_name = "port-$ifIndex$suffix"; $new_rrd_name = getPortRrdName($port_id, ltrim($suffix, '-')); rrd_file_rename($device, $old_rrd_name, $new_rrd_name);