mirror of
https://github.com/maride/afl-transmit.git
synced 2024-11-21 23:14:25 +00:00
Switch from rescan seconds to rescan minutes
This commit is contained in:
parent
ddaab52527
commit
c7bf5bc91b
@ -12,13 +12,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
rescanSecs int
|
rescan int
|
||||||
isMainNode bool
|
isMainNode bool
|
||||||
)
|
)
|
||||||
|
|
||||||
// Register flags
|
// RegisterWatchdogFlags registers required flags for the watchdog
|
||||||
func RegisterWatchdogFlags() {
|
func RegisterWatchdogFlags() {
|
||||||
flag.IntVar(&rescanSecs, "rescan-secs", 30, "Seconds to wait before rescanning local fuzzer directories")
|
flag.IntVar(&rescan, "rescan", 30, "Minutes to wait before rescanning local fuzzer directories")
|
||||||
flag.BoolVar(&isMainNode, "main", false, "Set this option if this afl-transmit instance is running on the node running the main afl-fuzz instance")
|
flag.BoolVar(&isMainNode, "main", false, "Set this option if this afl-transmit instance is running on the node running the main afl-fuzz instance")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ func WatchFuzzers(outputDirectory string) {
|
|||||||
net.SendToPeers(packedFuzzers)
|
net.SendToPeers(packedFuzzers)
|
||||||
|
|
||||||
// Sleep a bit
|
// Sleep a bit
|
||||||
time.Sleep(time.Duration(rescanSecs) * time.Second)
|
time.Sleep(time.Duration(rescan) * time.Minute)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user