Home
last modified time | relevance | path

Searched refs:half_total (Results 1 – 2 of 2) sorted by relevance

/dragonfly/usr.bin/top/
H A Dutils.c430 long half_total; in percentages() local
456 half_total = total_change / 2l; in percentages()
459 *out++ = (int)((*diffs++ * 1000 + half_total) / total_change); in percentages()
H A Dm_dragonfly.c220 uint64_t total_change, half_total; in cputime_percentages() local
243 half_total = total_change >> 1; in cputime_percentages()
245 out[0] = ((diffs.cp_user * 1000LL + half_total) / total_change); in cputime_percentages()
246 out[1] = ((diffs.cp_nice * 1000LL + half_total) / total_change); in cputime_percentages()
247 out[2] = ((diffs.cp_sys * 1000LL + half_total) / total_change); in cputime_percentages()
248 out[3] = ((diffs.cp_intr * 1000LL + half_total) / total_change); in cputime_percentages()
249 out[4] = ((diffs.cp_idle * 1000LL + half_total) / total_change); in cputime_percentages()