Skip to content
Snippets Groups Projects
Commit 46bff1ee authored by rswindell's avatar rswindell
Browse files

Speed up checking of data blocks by reducing the frequency of completion

status display (percentage complete).
parent f3d85b15
No related branches found
No related tags found
No related merge requests found
......@@ -640,7 +640,8 @@ int main(int argc, char **argv)
fseek(smb.sda_fp,0L,SEEK_SET);
for(l=0;l<length;l+=2) {
fprintf(stderr,"\r%2lu%% ",l ? (long)(100.0/((float)length/l)) : 0);
if((l%10)==0)
fprintf(stderr,"\r%2lu%% ",l ? (long)(100.0/((float)length/l)) : 0);
i=0;
if(!fread(&i,2,1,smb.sda_fp))
break;
......
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