diff options
| author | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-07 00:00:29 +0000 |
|---|---|---|
| committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-06-07 00:00:29 +0000 |
| commit | c3f1b5a9db00057bdd2c503068bdd38fb2dd19c0 (patch) | |
| tree | 093c53f08cea365b9562110406b80e87f3c52e22 | |
| parent | a5426997a3d7b6fc85f6577ff29dfc92c1589f8b (diff) | |
Notes
| -rw-r--r-- | bin/ps/print.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 7864cae59728..a38cd25053ef 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -542,7 +542,8 @@ elapsed(KINFO *k, VARENT *ve) v = ve->var; secs = now - k->ki_p->ki_start.tv_sec; - (void)snprintf(obuff, sizeof(obuff), "%3ld:%02ld", secs/60, secs%60); + (void)snprintf(obuff, sizeof(obuff), "%3ld:%02ld", (long)secs/60, + (long)secs%60); (void)printf("%*s", v->width, obuff); } |
