[PATCH] Fix stack overflow
Observed an overflow of eta_sec[32], bump it to 128 bytes.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/eta.c b/eta.c
index 7983645..8e17d20 100644
--- a/eta.c
+++ b/eta.c
@@ -181,7 +181,7 @@
unsigned long elapsed = mtime_since_genesis() / 1000;
int i, nr_running, nr_pending, t_rate, m_rate, *eta_secs, eta_sec;
struct thread_data *td;
- char eta_str[32];
+ char eta_str[128];
double perc = 0.0;
unsigned long long io_bytes[2];
unsigned long rate_time, disp_time, bw_avg_time;