new feature data usage hourly

This commit is contained in:
Benjamin Leblond
2019-02-27 20:42:36 +01:00
parent fb003a9e29
commit a295cf87c0
4 changed files with 100 additions and 12 deletions

View File

@@ -26,6 +26,8 @@ if (strlen($interface) > IFNAMSIZ) {
exit('Invalid interface name.');
}
require_once './get_bandwidth_hourly.php';
exec(sprintf('vnstat -i %s --json ', escapeshellarg($interface)), $jsonstdoutvnstat,
$exitcodedaily);
if ($exitcodedaily !== 0) {