Changeset 1283 in MondoRescue
- Timestamp:
- Mar 31, 2007, 12:21:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-filelist.c
r1264 r1283 291 291 return (0); 292 292 } 293 update_evalcall_form((int) (lino * 100 / noof_lines)); 293 if (noof_lines != 0) { 294 update_evalcall_form((int) (lino * 100 / noof_lines)); 295 } 294 296 } 295 297 } … … 366 368 367 369 if (filelist->ch == '\0') { 368 if (!(i++ % 1111) ) {370 if (!(i++ % 1111) && (g_original_noof_lines_in_filelist != 0)) { 369 371 percentage = 370 372 (int) (i * 100 / g_original_noof_lines_in_filelist); … … 879 881 } 880 882 add_string_at_node(filelist, fname); 881 if (!(++lino % 1111) ) {883 if (!(++lino % 1111) && (lines_in_filelist != 0)) { 882 884 percentage = (int) (lino * 100 / lines_in_filelist); 883 885 update_evalcall_form(percentage); … … 987 989 fprintf(fout, "%s\n", str); 988 990 // } 989 if (!(++lino % 1111) ) {991 if (!(++lino % 1111) && (lines_in_filelist != 0)) { 990 992 percentage = (int) (lino * 100 / lines_in_filelist); 991 993 update_evalcall_form(percentage); … … 1359 1361 "grep -Fv \"%s\" %s > %s.new 2> /dev/null", dir, 1360 1362 g_skeleton_filelist, g_skeleton_filelist); 1361 if (!system(find_skeleton_marker) ) {1363 if (!system(find_skeleton_marker) && (g_skeleton_entries != 0)) { 1362 1364 percentage = (int) (skeleton_lino * 100 / g_skeleton_entries); 1363 1365 skeleton_lino++;
Note:
See TracChangeset
for help on using the changeset viewer.