فهرست منبع

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)
 {