mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ids.cgi: Don't show the graph if there is no RRD data
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1101,7 +1101,9 @@ END
|
||||
&Header::closesection();
|
||||
|
||||
# Throughput Graph
|
||||
&Header::graph("$Lang::tr{'ips throughput'}", "ids.cgi", "ips-throughput", "day");
|
||||
if (-e "/var/log/rrd/collectd/localhost/iptables-mangle-IPS/ipt_bytes-BYPASSED.rrd") {
|
||||
&Header::graph("$Lang::tr{'ips throughput'}", "ids.cgi", "ips-throughput", "day");
|
||||
}
|
||||
|
||||
#
|
||||
# Used Ruleset Providers section.
|
||||
|
||||
Reference in New Issue
Block a user