Signed-off-by: Matthias Fischer --- html/cgi-bin/traffic.cgi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/cgi-bin/traffic.cgi b/html/cgi-bin/traffic.cgi index cafccf73f..4846cfdf9 100644 --- a/html/cgi-bin/traffic.cgi +++ b/html/cgi-bin/traffic.cgi @@ -86,7 +86,10 @@ sub display_vnstat if ( $testdata =~ 'enough') { print"No data for $device !
"; } else { + # Summary system("/usr/bin/vnstati -c 1 -s -i $device -o /srv/web/ipfire/html/graphs/vnstat-s-$device.png"); + # 5-minute graphs + system("/usr/bin/vnstati -c 1 -5 -i $device -o /srv/web/ipfire/html/graphs/vnstat-5-$device.png"); # Hour graph system("/usr/bin/vnstati -c 1 -h -i $device -o /srv/web/ipfire/html/graphs/vnstat-h-$device.png"); # Day graph @@ -100,6 +103,7 @@ sub display_vnstat print < + -- 2.18.0