Fix device bits overview when no ports are included (#14573)

This commit is contained in:
Tony Murray
2022-11-03 13:29:17 -05:00
committed by GitHub
parent 2fb81ce429
commit 95e81a53a8

View File

@@ -223,7 +223,7 @@ if ($previous) {
$rrd_optionsb .= ' LINE1.25:dout' . $format . 'X#666666:';
}
if (! $nototal) {
if (! $nototal && ! empty($rrd_list)) {
$rrd_options .= ' CDEF:inB=' . $in_thing . $pluses;
$rrd_options .= ' CDEF:outB=' . $out_thing . $pluses;
$rrd_options .= ' CDEF:octets=inB,outB,+';