From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 22C4B1FF15C for ; Fri, 5 Sep 2025 15:55:38 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 46FA1165A9; Fri, 5 Sep 2025 15:55:52 +0200 (CEST) From: Aaron Lauterer To: pve-devel@lists.proxmox.com Date: Fri, 5 Sep 2025 15:55:11 +0200 Message-ID: <20250905135517.4005478-2-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250905135517.4005478-1-a.lauterer@proxmox.com> References: <20250905135517.4005478-1-a.lauterer@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1757080501515 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.013 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH cluster 1/3] rrd: fix rrd time frames X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" month with the new rrd files provides a resoltion of 30 minutes year had a typo 1140 which should be 1440 Signed-off-by: Aaron Lauterer --- src/PVE/RRD.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PVE/RRD.pm b/src/PVE/RRD.pm index 8fe1927..932191d 100644 --- a/src/PVE/RRD.pm +++ b/src/PVE/RRD.pm @@ -28,8 +28,8 @@ sub create_rrd_data { hour => [60, 60], # 1 min resolution day => [60, 1440], # 1 min resolution, full day week => [60 * 30, 336], # 30 min resolution, 7 days - month => [3600 * 6, 121], # 6 hour resolution, 30 days, need one more count. Otherwise RRD gets wrong $step - year => [3600 * 6, 1140], # 6 hour resolution, 360 days + month => [60 * 30, 1440], # 30 min resolution 30 days + year => [3600 * 6, 1440], # 6 hour resolution, 360 days decade => [86400 * 7, 570], # 1 week resolution, 10 years }; @@ -115,8 +115,8 @@ sub create_rrd_graph { hour => [60, 60], # 1 min resolution day => [60, 1440], # 1 min resolution, full day week => [60 * 30, 336], # 30 min resolution, 7 days - month => [3600 * 6, 121], # 6 hour resolution, 30 days, need one more count. Otherwise RRD gets wrong $step - year => [3600 * 6, 1140], # 6 hour resolution, 360 days + month => [60 * 30, 1440], # 30 min resolution 30 days + year => [3600 * 6, 1440], # 6 hour resolution, 360 days decade => [86400 * 7, 570], # 1 week resolution, 10 years }; -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel