diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 555aff7cd8..dbde6b2b91 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -196,7 +196,7 @@ App::get('/v1/functions/:functionId/usage') foreach ($points as $point) { $compute[] = [ - 'value' => round((!empty($point['value'])) ? $point['value'] / 60000 : 0, 2), // minutes + 'value' => round((!empty($point['value'])) ? $point['value'] / 1000 : 0, 2), // minutes 'date' => \strtotime($point['time']), ]; } diff --git a/app/init.php b/app/init.php index 1815aa8c90..305518e36d 100644 --- a/app/init.php +++ b/app/init.php @@ -36,7 +36,7 @@ const APP_EMAIL_SECURITY = 'security@localhost.test'; // Default security email const APP_USERAGENT = APP_NAME.'-Server v%s. Please report abuse at %s'; const APP_MODE_ADMIN = 'admin'; const APP_PAGING_LIMIT = 12; -const APP_CACHE_BUSTER = 129; +const APP_CACHE_BUSTER = 131; const APP_VERSION_STABLE = '0.6.2'; const APP_STORAGE_UPLOADS = '/storage/uploads'; const APP_STORAGE_FUNCTIONS = '/storage/functions'; diff --git a/app/views/console/functions/function.phtml b/app/views/console/functions/function.phtml index 64d474dd2c..e1fc559369 100644 --- a/app/views/console/functions/function.phtml +++ b/app/views/console/functions/function.phtml @@ -297,7 +297,7 @@ $timeout = $this->getParam('timeout', 900);