Ver código fonte

Merge pull request #7039 from richardkchapman/thor-dodgy-stats

HPCC-11991 Weird count displayed on graph

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 10 anos atrás
pai
commit
06ccbedb12
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      thorlcr/graph/thgraphmaster.cpp

+ 2 - 0
thorlcr/graph/thgraphmaster.cpp

@@ -2775,6 +2775,7 @@ CThorStats::CThorStats(StatisticKind _kind) : kind(_kind)
 {
     unsigned c = queryClusterWidth();
     while (c--) counts.append(0);
+    reset();
 }
 
 void CThorStats::set(unsigned node, unsigned __int64 count)
@@ -2861,6 +2862,7 @@ CTimingInfo::CTimingInfo() : CThorStats(StTimeLocalExecute)
 
 ProgressInfo::ProgressInfo() : CThorStats(StNumRowsProcessed)
 {
+    startcount = stopcount = 0;
 }
 void ProgressInfo::processInfo() // reimplement as counts have special flags (i.e. stop/start)
 {