Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 6 of 6) sorted by relevance

/busybox-1.35.0/miscutils/
Dts.c29 char *frac; in ts_main() local
42 frac = is_suffixed_with(fmt_dt2str, "%.S"); in ts_main()
43 if (!frac) in ts_main()
44 frac = is_suffixed_with(fmt_dt2str, "%.s"); in ts_main()
45 if (frac) { in ts_main()
46 frac++; in ts_main()
47 frac[0] = frac[1]; in ts_main()
48 frac[1] = '\0'; in ts_main()
78 if (!frac) { in ts_main()
/busybox-1.35.0/libbb/
Dhuman_readable.c34 unsigned frac; /* 0..9 - the fractional digit */ in make_human_readable_str() local
44 frac = 0; in make_human_readable_str()
57 frac = (((unsigned)val % 1024) * 10 + 1024/2) / 1024; in make_human_readable_str()
60 if (frac >= 10) { /* we need to round up here */ in make_human_readable_str()
62 frac = 0; in make_human_readable_str()
67 if (frac >= 5) { in make_human_readable_str()
71 frac = 1; in make_human_readable_str()
76 return auto_string(xasprintf(fmt, val, frac, *u)); in make_human_readable_str()
/busybox-1.35.0/procps/
Dnmeter.c357 unsigned frac[CPU_FIELDCNT] = { 0, 0, 0, 0, 0, 0, 0 }; in S_STAT_END() local
388 frac[i] = t % all; in S_STAT_END()
392 unsigned max = frac[0]; in S_STAT_END()
395 if (frac[i] > max) max = frac[i], pos = i; in S_STAT_END()
397 frac[pos] = 0; //avoid bumping up same value twice in S_STAT_END()
/busybox-1.35.0/networking/
Dntpd.c584 uint32_t frac; in d_to_lfp() local
586 frac = (uint32_t)((d - intl) * UINT_MAX); in d_to_lfp()
588 lfp->fractionl = htonl(frac); in d_to_lfp()
594 uint16_t frac; in d_to_sfp() local
596 frac = (uint16_t)((d - ints) * USHRT_MAX); in d_to_sfp()
598 sfp->fractions = htons(frac); in d_to_sfp()
/busybox-1.35.0/shell/
Dhush.c12143 unsigned sec, frac; in builtin_times() local
12147 frac = t % clk_tck; in builtin_times()
12150 (frac * 1000) / clk_tck, in builtin_times()
Dash.c14127 unsigned sec, frac; in timescmd() local
14131 frac = t % clk_tck; in timescmd()
14134 (frac * 1000) / clk_tck, in timescmd()