mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
float2double
This commit is contained in:
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user