fixed issue with progress bar on cpu usage
This commit is contained in:
parent
f72476db9f
commit
273657ee83
1 changed files with 1 additions and 1 deletions
2
ajax.php
2
ajax.php
|
@ -262,7 +262,7 @@ if ($_GET['section'] == "sysinfo") {
|
||||||
echo "progress-bar-warning";
|
echo "progress-bar-warning";
|
||||||
if ($cpuusage >= 60)
|
if ($cpuusage >= 60)
|
||||||
echo "progress-bar-danger";
|
echo "progress-bar-danger";
|
||||||
?>" role="progressbar" aria-valuenow="<?php echo $cpuusage; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $cpuusage; ?>%;"><?php echo $cpuusage; ?>%</div></div>
|
?>" role="progressbar" aria-valuenow="<?php echo $cpuusage; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo intval($cpuusage); ?>%;"><?php echo $cpuusage; ?>%</div></div>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
echo $cpuusage." %";
|
echo $cpuusage." %";
|
||||||
|
|
Loading…
Reference in a new issue