D | fsck.c | 140 static double percent(int pass, unsigned long cur, unsigned long max) { in percent() argument 147 if (pass <= 0) in percent() 150 if ((unsigned) pass >= ELEMENTSOF(pass_table) || max == 0) in percent() 153 return (double) pass_table[pass-1] + in percent() 154 ((double) pass_table[pass] - (double) pass_table[pass-1]) * in percent() 175 int pass; in process_progress() local 181 if (fscanf(f, "%i %lu %lu %ms", &pass, &cur, &max, &device) != 4) { in process_progress() 208 p = percent(pass, cur, max); in process_progress()
|