Skip to content

Commit

Permalink
Fix systemd graphs using wrong rrd filename variable (#15988)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabveer committed Apr 27, 2024
1 parent 1dc6245 commit b14a86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/html/graphs/application/systemd-common.inc.php
Expand Up @@ -24,7 +24,7 @@
$state_type,
]);

if (Rrd::checkRrdExists($rrd_filename)) {
if (Rrd::checkRrdExists($shared_rrd_filename)) {
foreach ($rrdArray[$state_type] as $state_status => $state_status_aa) {
if ($state_status_aa['rrd_location'] === 'individual') {
$individual_rrd_filename = Rrd::name($device['hostname'], [
Expand All @@ -43,7 +43,7 @@
$i++;
}
} else {
graph_error('No Data file ' . basename($rrd_filename), 'No Data');
graph_error('No Data file ' . basename($shared_rrd_filename), 'No Data');
}
}

Expand Down

0 comments on commit b14a86e

Please sign in to comment.