mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Updated services and fixed minor bugs.
This commit is contained in:
parent
4306a4fb4f
commit
2a12fec5ea
90 changed files with 1706 additions and 3 deletions
|
@ -84,6 +84,17 @@ foreach ($data as $key => $value) {
|
|||
} else {
|
||||
$data[$key]['action_url'] = '/start/service/?srv='.$key;
|
||||
}
|
||||
|
||||
$data[$key]['SYSTEM'] = __($data[$key]['SYSTEM']);
|
||||
$data[$key]['RTIME'] = humanize_time($data[$key]['RTIME']);
|
||||
|
||||
$cpu = $data[$key]['CPU'] / 10;
|
||||
$data[$key]['CPU'] = number_format($cpu, 1);
|
||||
if ($cpu == '0.0') $data[$key]['CPU'] = 0;
|
||||
}
|
||||
|
||||
foreach ($sys as $key => $value) {
|
||||
$sys[$key]['UPTIME'] = humanize_time($sys[$key]['UPTIME']);
|
||||
}
|
||||
|
||||
// Render page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue