Merge branch 'fio-c++-engine' of https://github.com/tchaikov/fio
[fio.git] / eta.c
diff --git a/eta.c b/eta.c
index 2d549ee9c8f4798154a1f3f9e515b6762cab0ebf..9111f5ec1e670bfc4177c12e24601795be291efb 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -149,7 +149,7 @@ void eta_to_str(char *str, unsigned long eta_sec)
                str += sprintf(str, "%02uh:", h);
 
        str += sprintf(str, "%02um:", m);
-       str += sprintf(str, "%02us", s);
+       sprintf(str, "%02us", s);
 }
 
 /*
@@ -621,7 +621,7 @@ void display_thread_status(struct jobs_eta *je)
                        free(iops_str[ddir]);
                }
        }
-       p += sprintf(p, "\r");
+       sprintf(p, "\r");
 
        printf("%s", output);