mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 01:01:33 +00:00
auto code format fixes
This commit is contained in:
parent
07cf27cddc
commit
403d95d2d2
@ -611,9 +611,10 @@ void show_stats_normal(afl_state_t *afl) {
|
||||
|
||||
/* Roughly every minute, update fuzzer stats and save auto tokens. */
|
||||
|
||||
if (unlikely(!afl->non_instrumented_mode &&
|
||||
(afl->force_ui_update ||
|
||||
cur_ms - afl->stats_last_stats_ms > afl->stats_file_update_freq_msecs))) {
|
||||
if (unlikely(
|
||||
!afl->non_instrumented_mode &&
|
||||
(afl->force_ui_update || cur_ms - afl->stats_last_stats_ms >
|
||||
afl->stats_file_update_freq_msecs))) {
|
||||
|
||||
afl->stats_last_stats_ms = cur_ms;
|
||||
write_stats_file(afl, t_bytes, t_byte_ratio, stab_ratio,
|
||||
|
@ -553,11 +553,9 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
afl->shmem_testcase_mode = 1; // we always try to perform shmem fuzzing
|
||||
|
||||
while (
|
||||
(opt = getopt(
|
||||
argc, argv,
|
||||
"+Ab:B:c:CdDe:E:hi:I:f:F:g:G:l:L:m:M:nNOo:p:RQs:S:t:T:u:UV:WXx:YZ")) >
|
||||
0) {
|
||||
while ((opt = getopt(argc, argv,
|
||||
"+Ab:B:c:CdDe:E:hi:I:f:F:g:G:l:L:m:M:nNOo:p:RQs:S:t:T:u:"
|
||||
"UV:WXx:YZ")) > 0) {
|
||||
|
||||
switch (opt) {
|
||||
|
||||
@ -670,7 +668,9 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
case 'u':
|
||||
if (sscanf(optarg, "%llu", &stats_update_freq_sec) < 1) {
|
||||
|
||||
FATAL("Bad syntax used for -u");
|
||||
|
||||
}
|
||||
|
||||
afl->stats_file_update_freq_msecs = stats_update_freq_sec * 1000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user