Skip to content
Snippets Groups Projects

[io/Stats] do not try to print the globalIo stats if there are none

Merged Florian Fischer requested to merge aj46ezos/emper:fix_io_stats_without_globalIo into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -119,7 +119,9 @@ auto operator<<(std::ostream& os, const Stats& s) -> std::ostream& {
void Stats::printStats(IoContext* globalIoContext,
const std::vector<IoContext*>& workerIoContexts) {
std::cout << globalIoContext->getStats() << std::endl;
if (globalIoContext) {
std::cout << globalIoContext->getStats() << std::endl;
}
// Use a stats object to calculate the averages
Stats avgs;
Loading