mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rebase
This commit is contained in:
@@ -12,12 +12,14 @@ if ($ports['total']) {
|
||||
|
||||
if($_SESSION['screen_width']) {
|
||||
if($_SESSION['screen_width'] > 970) {
|
||||
$graph_array['width'] = round(($_SESSION['screen_width'] - 190 )/2,0);
|
||||
$graph_array['width'] = round(($_SESSION['screen_width'] - 390 )/2,0);
|
||||
$graph_array['height'] = round($graph_array['width'] /3);
|
||||
$graph_array['lazy_w'] = $graph_array['width'] + 80;
|
||||
}
|
||||
else {
|
||||
$graph_array['width'] = $_SESSION['screen_width'] - 110;
|
||||
$graph_array['width'] = $_SESSION['screen_width'] - 190;
|
||||
$graph_array['height'] = round($graph_array['width'] /3);
|
||||
$graph_array['lazy_w'] = $graph_array['width'] + 80;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -66,12 +66,14 @@ if (count($processors)) {
|
||||
|
||||
if($_SESSION['screen_width']) {
|
||||
if($_SESSION['screen_width'] > 970) {
|
||||
$graph_array['width'] = round(($_SESSION['screen_width'] - 190 )/2,0);
|
||||
$graph_array['width'] = round(($_SESSION['screen_width'] - 390 )/2,0);
|
||||
$graph_array['height'] = round($graph_array['width'] /3);
|
||||
$graph_array['lazy_w'] = $graph_array['width'] + 80;
|
||||
}
|
||||
else {
|
||||
$graph_array['width'] = $_SESSION['screen_width'] - 110;
|
||||
$graph_array['width'] = $_SESSION['screen_width'] - 190;
|
||||
$graph_array['height'] = round($graph_array['width'] /3);
|
||||
$graph_array['lazy_w'] = $graph_array['width'] + 80;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user