Fixed week/month/year graph

Fixes #774.
This commit is contained in:
TimZ99 2019-09-25 23:40:06 +02:00
parent 4ebe934b2e
commit b399327c4b
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class HistoryGraph {
$month = new \DateTime('-1 month -1 week 0:0:0');
$year = new \DateTime('-1 year -1 week 0:0:0');
$records = $this->getRecords('history', $server_id, $month, $end_time);
$records = $this->getRecords('history', $server_id, $year, $end_time);
// dont add uptime for now because we have no way to calculate accurate uptimes for archived records
$data = $this->generateGraphLines($records, $lines, 'latency_avg', $start_time, $end_time, false);