Browse Source

Merge pull request #9514 from jakesmith/hpcc-16919

HPCC-16919 Make graph/edge stat. slave #'s 1 based.

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 8 years ago
parent
commit
e12e81d2d4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      thorlcr/graph/thgraphmaster.cpp

+ 2 - 2
thorlcr/graph/thgraphmaster.cpp

@@ -2828,7 +2828,7 @@ void CThorStats::processInfo()
     ForEachItemIn(n, counts)
     {
         unsigned __int64 thiscount = counts.item(n);
-        tallyValue(thiscount, n);
+        tallyValue(thiscount, n+1);
     }
     calculateSkew();
 }
@@ -2880,7 +2880,7 @@ void ProgressInfo::processInfo() // reimplement as counts have special flags (i.
         if (thiscount & THORDATALINK_STOPPED)
             stopcount++;
         thiscount = thiscount & THORDATALINK_COUNT_MASK;
-        tallyValue(thiscount, n);
+        tallyValue(thiscount, n+1);
     }
     calculateSkew();
 }