mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #3797 from appwrite/fix-usage-always-taking-fulltime
fix the latest time memory store
This commit is contained in:
commit
ce73b44ccf
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,6 @@ class TimeSeries extends Calculator
|
||||||
$document->setAttribute('value', $value)
|
$document->setAttribute('value', $value)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$this->latestTime[$metric][$period] = $time;
|
|
||||||
} catch (\Exception $e) { // if projects are deleted this might fail
|
} catch (\Exception $e) { // if projects are deleted this might fail
|
||||||
if (is_callable($this->errorHandler)) {
|
if (is_callable($this->errorHandler)) {
|
||||||
call_user_func($this->errorHandler, $e, "sync_project_{$projectId}_metric_{$metric}");
|
call_user_func($this->errorHandler, $e, "sync_project_{$projectId}_metric_{$metric}");
|
||||||
|
|
@ -397,6 +396,7 @@ class TimeSeries extends Calculator
|
||||||
$value,
|
$value,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
$this->latestTime[$metric][$period['key']] = $point['time'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) { // if projects are deleted this might fail
|
} catch (\Exception $e) { // if projects are deleted this might fail
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue