projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
random: document default seed value
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index 533981fcc89ac20d9297808d8c88ec2b69617202..9a30bea4d01cf57a710ed8277b23ec336ea3c0d8 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-13,6
+13,7
@@
#include "json.h"
#include "lib/getrusage.h"
#include "idletime.h"
#include "json.h"
#include "lib/getrusage.h"
#include "idletime.h"
+#include "lib/pow2.h"
struct fio_mutex *stat_mutex;
struct fio_mutex *stat_mutex;
@@
-1369,7
+1370,7
@@
void __show_run_stats(void)
struct group_run_stats *runstats, *rs;
struct thread_data *td;
struct thread_stat *threadstats, *ts;
struct group_run_stats *runstats, *rs;
struct thread_data *td;
struct thread_stat *threadstats, *ts;
- int i, j, nr_ts, last_ts, idx;
+ int i, j,
k,
nr_ts, last_ts, idx;
int kb_base_warned = 0;
int unit_base_warned = 0;
struct json_object *root = NULL;
int kb_base_warned = 0;
int unit_base_warned = 0;
struct json_object *root = NULL;
@@
-1481,8
+1482,8
@@
void __show_run_stats(void)
ts->latency_window = td->o.latency_window;
ts->nr_block_infos = td->ts.nr_block_infos;
ts->latency_window = td->o.latency_window;
ts->nr_block_infos = td->ts.nr_block_infos;
- for (
i = 0; i < ts->nr_block_infos; i
++)
- ts->block_infos[
i] = td->ts.block_infos[i
];
+ for (
k = 0; k < ts->nr_block_infos; k
++)
+ ts->block_infos[
k] = td->ts.block_infos[k
];
sum_thread_stats(ts, &td->ts, idx);
}
sum_thread_stats(ts, &td->ts, idx);
}