From 71bd852ff66ed440f7b85f8b3981af0ab9db7fc0 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 21 Feb 2016 18:36:02 +0100 Subject: [PATCH] (health) add some comments --- .../OPNsense/Diagnostics/Api/SystemhealthController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php index 3497a2356..8eabcd306 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Diagnostics/Api/SystemhealthController.php @@ -567,6 +567,8 @@ class SystemhealthController extends ApiControllerBase $inverse = false; } + // The zoom (timespan) level determines the number of datasets to + // use in the equation. All the irrelevant sets are removed here. if ((int)$detail >= 0) { for ($count = count($xml->rra) - 1; $count > $detail; $count--) { unset($xml->rra[$count]);