Home
last modified time | relevance | path

Searched refs:cunits (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/
H A Dedquota.c607 } cunits [] = { variable
626 for (i = 0; i < sizeof (cunits) / sizeof (cunits[0]); i++) in fmttime()
627 if (time >= cunits[i].c_secs) in fmttime()
630 value = (double)time / cunits[i].c_secs; in fmttime()
632 value, cunits[i].c_str, value > 1.0 ? "s" : ""); in fmttime()
644 for (i = 0; i < sizeof (cunits) / sizeof (cunits[0]); i++) { in unfmttime()
645 if (strncmp(cunits[i].c_str, units, in unfmttime()
646 strlen(cunits[i].c_str)) == 0) in unfmttime()
649 if (i >= sizeof (cunits) / sizeof (cunits[0])) in unfmttime()
651 *timep = (ulong_t)(value * cunits[i].c_secs); in unfmttime()
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c346 } cunits [] = { in fmttime() local
359 for (i = 0; i < sizeof (cunits) / sizeof (cunits[0]); i++) { in fmttime()
360 if (time >= cunits[i].c_secs) in fmttime()
364 (double)time / cunits[i].c_secs, cunits[i].c_str); in fmttime()
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c587 } cunits [] = { in fmttime() local
600 for (i = 0; i < sizeof (cunits)/sizeof (cunits[0]); i++) { in fmttime()
601 if (time >= cunits[i].c_secs) in fmttime()
605 (double)time/cunits[i].c_secs, cunits[i].c_str); in fmttime()