diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/top/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/top/utils.c b/contrib/top/utils.c index e136d2a..94233de 100644 --- a/contrib/top/utils.c +++ b/contrib/top/utils.c @@ -391,7 +391,8 @@ long seconds; { /* standard method produces MMM:SS */ /* we avoid printf as must as possible to make this quick */ - sprintf(result, "%3d:%02d", seconds / 60l, seconds % 60l); + sprintf(result, "%3ld:%02ld", + (long)(seconds / 60), (long)(seconds % 60)); } return(result); } |