+ if (!rate_io_bytes[0] && !rate_io_bytes[1])
+ fill_start_time(&rate_prev_time);
+ if (!disp_io_bytes[0] && !disp_io_bytes[1])
+ fill_start_time(&disp_prev_time);
+
+ eta_secs = malloc(thread_number * sizeof(unsigned long));
+ memset(eta_secs, 0, thread_number * sizeof(unsigned long));
+
+ io_bytes[0] = io_bytes[1] = 0;
+ nr_pending = nr_running = t_rate = m_rate = t_iops = m_iops = 0;
+ nr_ramp = 0;
+ bw_avg_time = ULONG_MAX;
+ files_open = 0;
+ for_each_td(td, i) {
+ if (td->o.bw_avg_time < bw_avg_time)
+ bw_avg_time = td->o.bw_avg_time;
+ if (td->runstate == TD_RUNNING || td->runstate == TD_VERIFYING
+ || td->runstate == TD_FSYNCING) {
+ nr_running++;
+ t_rate += td->o.rate;
+ m_rate += td->o.ratemin;
+ t_iops += td->o.rate_iops;
+ m_iops += td->o.rate_iops_min;
+ files_open += td->nr_open_files;
+ } else if (td->runstate == TD_RAMP) {