summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-27 16:12:35 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-05-27 16:12:35 +0200
commitc3f5387d9d8d3fd36e8bcf562c1ad4cc99e38a91 (patch)
tree821a3602256874478939d07c2bde9edd874b7c8a
parent6babef7df913dc91066bf1ac8c7a1ad6b43acb3d (diff)
downloaddabmod-c3f5387d9d8d3fd36e8bcf562c1ad4cc99e38a91.tar.gz
dabmod-c3f5387d9d8d3fd36e8bcf562c1ad4cc99e38a91.tar.bz2
dabmod-c3f5387d9d8d3fd36e8bcf562c1ad4cc99e38a91.zip
Fix process time statistics print
-rw-r--r--src/Flowgraph.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Flowgraph.cpp b/src/Flowgraph.cpp
index 8e76cae..c199945 100644
--- a/src/Flowgraph.cpp
+++ b/src/Flowgraph.cpp
@@ -152,14 +152,14 @@ Flowgraph::~Flowgraph()
fprintf(stderr, "Process time:\n");
for (const auto &node : nodes) {
- fprintf(stderr, " %30s: %10u us (%2.2f %%)\n",
+ fprintf(stderr, " %30s: %10lu us (%2.2f %%)\n",
node->plugin()->name(),
- (unsigned)node->processTime(),
+ node->processTime(),
node->processTime() * 100.0 / myProcessTime);
}
- fprintf(stderr, " %30s: %10u us (100.00 %%)\n", "total",
- (unsigned)myProcessTime);
+ fprintf(stderr, " %30s: %10lu us (100.00 %%)\n", "total",
+ myProcessTime);
}
}