1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
raspap-webgui/includes/data_usage.php

14 lines
462 B
PHP
Raw Permalink Normal View History

<?php
/**
* Generate html for displaying data usage.
*/
function DisplayDataUsage(&$extraFooterScripts)
{
exec("ip -o link show | awk -F ': ' '{print $2}' | grep -v lo ", $interfacesWlo);
2019-08-19 01:21:23 +02:00
echo renderTemplate("data_usage", [ "interfaces" => $interfacesWlo ]);
2019-10-08 19:36:31 +02:00
$extraFooterScripts[] = array('src'=>'dist/datatables/jquery.dataTables.min.js', 'defer'=>false);
$extraFooterScripts[] = array('src'=>'app/js/bandwidthcharts.js', 'defer'=>false);
}