Browse Source

fixed a bug not polling the identical time intervals for both DVMs, now identical

Thomas Thümmler 6 months ago
parent
commit
540876b13a
1 changed files with 2 additions and 4 deletions
  1. 2 4
      poll_HV_data.php

+ 2 - 4
poll_HV_data.php

@@ -89,8 +89,7 @@
             unset($element);
 
             // filter and extract FlukeA values and calculate mean and deviations for a set of entries
-            $index = array(-10, -30, -150
-            );
+            $index = array(-5, -10, -30, -150, -300);
             foreach ($index as $slice) {
                 if (sizeof($readings1) > abs($slice)) {
                     $arrayslice = array_slice($readings1, $slice);
@@ -133,8 +132,7 @@
             }
 
             // filter and extract FlukeE values and calculate mean and deviations for a set of entries
-            $index = array(-5, -10, -30, -150
-            );
+            $index = array(-5, -10, -30, -150, -300);
             foreach ($index as $slice) {
                 if (sizeof($readings2) > abs($slice)) {
                     $arrayslice = array_slice($readings2, $slice);