diff options
Diffstat (limited to 'src/core/monojob.c')
| -rw-r--r-- | src/core/monojob.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/monojob.c b/src/core/monojob.c index 2c91e1322..a7e838514 100644 --- a/src/core/monojob.c +++ b/src/core/monojob.c @@ -63,7 +63,8 @@ struct job_interface monojob = { int monojob_wait ( const char *string ) { int key; int rc; - tick_t last_progress_dot; + unsigned long last_progress_dot; + unsigned long elapsed; printf ( "%s.", string ); monojob_rc = -EINPROGRESS; @@ -81,7 +82,8 @@ int monojob_wait ( const char *string ) { break; } } - if ( ( currticks() - last_progress_dot ) > TICKS_PER_SEC ) { + elapsed = ( currticks() - last_progress_dot ); + if ( elapsed > TICKS_PER_SEC ) { printf ( "." ); last_progress_dot = currticks(); } |
