1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00
This commit is contained in:
Damodar Lohani 2022-03-02 17:38:22 +05:45 committed by GitHub
parent c84a1e4fd8
commit c0571c59b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -418,7 +418,7 @@ $cli
// Get total storage
$dbForProject->setNamespace('_' . $projectId);
$storageTotal = $dbForProject->sum('tags', 'size');
$storageTotal = $dbForProject->sum('deployments', 'size');
$time = (int) (floor(time() / 1800) * 1800); // Time rounded to nearest 30 minutes
$id = \md5($time . '_30m_storage.deployments.total'); //Construct unique id for each metric using time, period and metric