From 3674880f071d810d19b9864b726d5b2c4852e220 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Thu, 28 Oct 2021 12:35:49 +0900 Subject: [PATCH] Grow rrd database rows to 0:7days, 1:10years. --- lib/Rrd/Temperature.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Rrd/Temperature.php b/lib/Rrd/Temperature.php index 7fcb470..290c659 100644 --- a/lib/Rrd/Temperature.php +++ b/lib/Rrd/Temperature.php @@ -112,8 +112,8 @@ class Temperature $options = [ '--step', '60', // 1min step sprintf('DS:%s:GAUGE:600:0:100', $id), // 10min hartbeat - 'RRA:LAST:0.5:1:1440', // last/m - 1day(1440min) - 'RRA:LAST:0.5:30:52560', // last/30m - 3years(365day=30min*17520)*3 + 'RRA:LAST:0.5:1:10080', // last/m - 7day(10080min) + 'RRA:LAST:0.5:30:175200', // last/30m - 10years(365day=30min*17520)*10 ]; return rrd_create($fpath, $options);