Skip to content
Snippets Groups Projects
Commit c73e67a0 authored by Marius Hintsche's avatar Marius Hintsche
Browse files

fix progress percentage

parent 8ac53b6f
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ inputName = substring(inputName, 0, dotIndex);
//FIXME calculate iMax correctly for overlaps
iMax = floor(nSlices()/subStackSize)+1;
for (i=0; i<iMax; i++) {
print(progressTitle,"\\Update:"+i+"/"+iMax+" substacks ("+(i*100)/100+"%)\n"+getBar(i, 100));
print(progressTitle,"\\Update:"+i+"/"+iMax+" substacks ("+round(i/iMax)+"%)\n"+getBar(i, 100));
start=i*subStackSize+1;
stop=start+subStackSize+overlap;
if (stop > nSlices()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment