Skip to content
Snippets Groups Projects
Commit 13c2d3f2 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added a fallback for present_n().

Rev: lib/modules/Tools.pmod/Shoot.pmod/module.pmod:1.21
parent c0d5e4ce
No related branches found
No related tags found
No related merge requests found
...@@ -130,16 +130,15 @@ class ExecTest(string id,Test test) ...@@ -130,16 +130,15 @@ class ExecTest(string id,Test test)
if (silent) return 0; if (silent) return 0;
write("%6.3fs %6.3fs %s %5s%s\n", write("%6.3fs %6.3fs %s %5s (%s)\n",
tseconds, tseconds,
useconds, useconds,
memusage>0 ? sprintf("%5dkb", memusage/1024) : " ? ", memusage>0 ? sprintf("%5dkb", memusage/1024) : " ? ",
"(" + nruns + ")", "(" + nruns + ")",
test->present_n (tg == 0.0)?"no time?":
?" ("+(tg != 0.0 test->present_n?test->present_n(testntot,nruns,truns,tg,memusage):
?test->present_n(testntot,nruns,truns,tg,memusage) sprintf("%d%s/s", (int)((testntot || nruns)/tg),
:"no time?")+")" testntot?"":" runs"));
:"");
return 0; return 0;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment