Skip to content

Commit

Permalink
Fix compatibility with the latest version of ek package
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jun 26, 2021
1 parent 82594f2 commit 659f8a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fz.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
// App info
const (
APP = "fz"
VER = "0.0.3"
VER = "0.0.4"
DESC = "Tool for formatting go-fuzz output"
)

Expand Down Expand Up @@ -176,14 +176,14 @@ func parseInfoLine(data string) (Info, bool) {
info.DateTime += " " + strutil.ReadField(dataSlice[0], 1, false, " ")
info.Workers, _ = strconv.Atoi(strutil.ReadField(dataSlice[0], 3, false, " "))
info.Corpus, _ = strconv.Atoi(strutil.ReadField(dataSlice[1], 1, false, " "))
info.CorpusDur = timeutil.ParseDuration(corpusDate)
info.CorpusDur, _ = timeutil.ParseDuration(corpusDate)
info.Crashers, _ = strconv.Atoi(strutil.ReadField(dataSlice[2], 1, false, " "))
info.Restarts = strutil.ReadField(dataSlice[3], 1, false, " ")
info.Execs, _ = strconv.Atoi(strutil.ReadField(dataSlice[4], 1, false, " "))
execsPerSec := strings.Trim(strutil.ReadField(dataSlice[4], 2, false, " "), "(/sec)")
info.ExecsPerSec, _ = strconv.Atoi(execsPerSec)
info.Cover, _ = strconv.Atoi(strutil.ReadField(dataSlice[5], 1, false, " "))
info.Uptime = timeutil.ParseDuration(uptime)
info.Uptime, _ = timeutil.ParseDuration(uptime)

return info, true
}
Expand Down

0 comments on commit 659f8a8

Please sign in to comment.