diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-29 01:23:28 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-29 01:23:28 +0000 |
commit | 5d44d9cff102901a7355df4382bb3717ee0572ef (patch) | |
tree | dc854cdabdd6a336e59574b7b34aee9266cbafd1 /sys/kern/tty.c | |
parent | 2dd07e734e95950a553c91941a23850eeee98683 (diff) | |
download | FreeBSD-src-5d44d9cff102901a7355df4382bb3717ee0572ef.zip FreeBSD-src-5d44d9cff102901a7355df4382bb3717ee0572ef.tar.gz |
Make ttyprintf() of tv_sec value type agnostic.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index a4d42fc..13ab4f7 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -2349,12 +2349,12 @@ ttyinfo(tp) stmp); /* Print user time. */ - ttyprintf(tp, "%ld.%02ldu ", - utime.tv_sec, utime.tv_usec / 10000); + ttyprintf(tp, "%lld.%02ldu ", + (quad_t)utime.tv_sec, utime.tv_usec / 10000); /* Print system time. */ - ttyprintf(tp, "%ld.%02lds ", - stime.tv_sec, stime.tv_usec / 10000); + ttyprintf(tp, "%lld.%02lds ", + (quad_t)stime.tv_sec, stime.tv_usec / 10000); /* Print percentage cpu, resident set size. */ ttyprintf(tp, "%d%% %ldk\n", tmp / 100, ltmp); |