summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/timer.c b/timer.c
index 09f42bf..de6bc28 100644
--- a/timer.c
+++ b/timer.c
@@ -16,7 +16,7 @@ int main(int argc, char** argv){
int time = min*60 + sec;
for (int j = 0; times==0 || j<times; j++){
for (int i = 1; i<=time; i++){
- printf("%d:%02d/%d:%02d\r", (i-i%60)/60, i%60, min, sec);
+ printf("\r%d:%02d/%d:%02d", (i-i%60)/60, i%60, min, sec);
fflush(stdout);
sleep(1);
}