Date: Sun, 4 Sep 2011 05:04:34 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r225371 - head/sys/kern Message-ID: <201109040504.p8454YKj076305@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sun Sep 4 05:04:34 2011 New Revision: 225371 URL: http://svn.freebsd.org/changeset/base/225371 Log: Since r224036 the cputime and wallclock are supposed to be in seconds, not microseconds. Make it so. Approved by: re (kib) Modified: head/sys/kern/kern_rctl.c Modified: head/sys/kern/kern_rctl.c ============================================================================== --- head/sys/kern/kern_rctl.c Sat Sep 3 21:28:26 2011 (r225370) +++ head/sys/kern/kern_rctl.c Sun Sep 4 05:04:34 2011 (r225371) @@ -908,7 +908,7 @@ rctl_string_to_rule(char *rulestr, struc if (error != 0) goto out; if (RACCT_IS_IN_MILLIONS(rule->rr_resource)) - rule->rr_amount *= 1000; + rule->rr_amount *= 1000000; } if (perstr == NULL || perstr[0] == '\0') @@ -1223,7 +1223,7 @@ rctl_racct_to_sbuf(struct racct *racct, continue; amount = racct->r_resources[i]; if (RACCT_IS_IN_MILLIONS(i)) - amount /= 1000; + amount /= 1000000; sbuf_printf(sb, "%s=%jd,", rctl_resource_name(i), amount); } sbuf_setpos(sb, sbuf_len(sb) - 1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109040504.p8454YKj076305>