Browse Source

Merge pull request #13078 from shamser/issue22855

HPCC-22855 wutool analyze to report cost in human readable format

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 5 years ago
parent
commit
4f75a21bf7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      common/wuanalysis/anacommon.cpp

+ 3 - 1
common/wuanalysis/anacommon.cpp

@@ -34,7 +34,9 @@ int PerformanceIssue::compareCost(const PerformanceIssue & other) const
 
 void PerformanceIssue::print() const
 {
-    printf("[%" I64F "dms] %s: %s\n", statUnits2msecs(cost), scope.str(), comment.str());
+    StringBuffer out;
+    formatStatistic(out, cost, SMeasureTimeNs);
+    printf("[%s] %s: %s\n", out.str(), scope.str(), comment.str());
 }
 
 void PerformanceIssue::createException(IWorkUnit * wu)