This commit is contained in:
Louis Bailleul
2015-12-21 13:26:48 +00:00
parent ee75091c44
commit b40bd2f467
3 changed files with 15 additions and 4 deletions

View File

@@ -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;
}
}

View File

@@ -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;
}
}