Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
}
}
+ free(eta_secs);
+
if (eta_sec != INT_MAX && elapsed) {
perc = (double) elapsed / (double) (elapsed + eta_sec);
eta_to_str(eta_str, eta_sec);
}
printf("\r");
fflush(stdout);
- free(eta_secs);
}
void print_status_init(int thread_number)
int ret = switch_ioscheduler(td);
free(td->ioscheduler);
+ free(td->sysfs_root);
if (ret)
goto err;
}
sprintf(foo, "%s", tmp);
}
- td->sysfs_root = strdup(foo);
+ if (td->ioscheduler)
+ td->sysfs_root = strdup(foo);
+
disk_util_add(dev, foo);
}
show_disk_util();
}
+
+ free(runstats);
}
static inline void add_stat_sample(struct io_stat *is, unsigned long val)