浏览代码

HPCC-11991 Weird count displayed on graph

Uninitialized member variables...

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 年之前
父节点
当前提交
0bb592b370
共有 1 个文件被更改,包括 2 次插入0 次删除
  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)
 {