mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
Merged with upstream
This commit is contained in:
commit
52bdfc3aab
2 changed files with 382 additions and 191 deletions
|
@ -67,14 +67,14 @@ function humanize_time($usage) {
|
|||
$usage = $usage / 60;
|
||||
if ( $usage > 24 ) {
|
||||
$usage = $usage / 24;
|
||||
$usage = number_format($usage, 0);
|
||||
$usage = number_format($usage);
|
||||
if ( $usage == 1 ) {
|
||||
$usage = $usage." "._('day');
|
||||
} else {
|
||||
$usage = $usage." "._('days');
|
||||
}
|
||||
} else {
|
||||
$usage = number_format($usage, 0);
|
||||
$usage = number_format($usage);
|
||||
if ( $usage == 1 ) {
|
||||
$usage = $usage." "._('hour');
|
||||
} else {
|
||||
|
@ -174,4 +174,4 @@ function display_error_block() {
|
|||
unset($_SESSION['error_msg']);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue