data['budget'] ?? 'unknown';
$budget_usecs = $app->data['budget_usecs'] ?? 'unknown';
print_optionbar_start();
echo 'Current Budget: ' . $budget . "
\nCurrent Budget usecs:" . $budget_usecs . "\n
";
print_optionbar_end();
$graphs = [
'linux_softnet_stat_packets' => 'Packets Per Second',
'linux_softnet_stat_time_squeeze' => 'Time Squeezes Per Second',
'linux_softnet_stat_backlog_length' => 'Backlog Lenght',
'linux_softnet_stat_packet_dropped' => 'Packets Dropped Per Second',
'linux_softnet_stat_cpu_collision' => 'CPU Collisions Per Second',
'linux_softnet_stat_flow_limit' => 'Flow Limit Hit Per Second',
'linux_softnet_stat_received_rps' => 'Received RPS Per Second',
'linux_softnet_stat_budget' => 'Budget Sysctl Values',
];
foreach ($graphs as $key => $text) {
$graph_type = $key;
$graph_array['height'] = '100';
$graph_array['width'] = '215';
$graph_array['to'] = \LibreNMS\Config::get('time.now');
$graph_array['id'] = $app['app_id'];
$graph_array['type'] = 'application_' . $key;
echo '