Lines Matching refs:rperc
461 if ((args->flags & CLD_FLG_DUTY) && (args->rperc < 100)) { in normalize_percs()
465 args->rperc = 100; in normalize_percs()
472 args->rperc = 0; in normalize_percs()
475 if (args->rperc == 0 && args->wperc == 0) { in normalize_percs()
476 args->rperc = 50; in normalize_percs()
478 } else if (args->rperc == 0) { in normalize_percs()
479 args->rperc = 100 - args->wperc; in normalize_percs()
481 args->wperc = 100 - args->rperc; in normalize_percs()
485 if (args->rperc + args->wperc != 100) { in normalize_percs()
489 i = 100 - (args->rperc + args->wperc); in normalize_percs()
492 args->rperc += (i - j); in normalize_percs()