Lines Matching refs:wperc
466 args->wperc = 0; in normalize_percs()
468 if ((args->flags & CLD_FLG_DUTY) && (args->wperc < 100)) { in normalize_percs()
473 args->wperc = 100; in normalize_percs()
475 if (args->rperc == 0 && args->wperc == 0) { in normalize_percs()
477 args->wperc = 50; in normalize_percs()
479 args->rperc = 100 - args->wperc; in normalize_percs()
480 } else if (args->wperc == 0) { 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()
491 args->wperc += j; in normalize_percs()