From 28a998c272cc51aff7aa0dcbf75b7b1d410d2f56 Mon Sep 17 00:00:00 2001 From: M Alfiyan Syamsuddin Date: Thu, 2 Sep 2021 13:25:36 +0700 Subject: [PATCH] generate by last month, tracing why < week uptime truncated --- src/psm/Util/Server/HistoryGraph.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/psm/Util/Server/HistoryGraph.php b/src/psm/Util/Server/HistoryGraph.php index 110a58e9..9c2be688 100644 --- a/src/psm/Util/Server/HistoryGraph.php +++ b/src/psm/Util/Server/HistoryGraph.php @@ -72,10 +72,11 @@ class HistoryGraph $now = new DateTime(); $last_week = new DateTime('-1 week 0:0:0'); + $last_month = new DateTime('-1 month 0:0:0'); $last_year = new DateTime('-1 year -1 week 0:0:0'); $graphs = array( - 0 => $this->generateGraphUptime($server_id, $last_week, $now), + 0 => $this->generateGraphUptime($server_id, $last_month, $now), 1 => $this->generateGraphHistory($server_id, $last_year, $last_week), ); $info_fields = array(