float2double

This commit is contained in:
van Hauser
2020-12-31 11:51:10 +01:00
parent 84e72b0a51
commit 7e6645d5a2
2 changed files with 3 additions and 3 deletions

View File

@ -645,7 +645,7 @@ typedef struct afl_state {
unsigned long long int last_avg_exec_update;
u32 last_avg_execs;
float last_avg_execs_saved;
double last_avg_execs_saved;
/* foreign sync */
#define FOREIGN_SYNCS_MAX 32

View File

@ -120,8 +120,8 @@ void write_stats_file(afl_state_t *afl, double bitmap_cvg, double stability,
cur_time - afl->last_avg_exec_update >= 60000))) {
afl->last_avg_execs_saved =
(float)(1000 * (afl->fsrv.total_execs - afl->last_avg_execs)) /
(float)(cur_time - afl->last_avg_exec_update);
(double)(1000 * (afl->fsrv.total_execs - afl->last_avg_execs)) /
(double)(cur_time - afl->last_avg_exec_update);
afl->last_avg_execs = afl->fsrv.total_execs;
afl->last_avg_exec_update = cur_time;