Fix afterburner log format parsing

This commit is contained in:
Erikas 2024-07-14 19:46:49 +03:00
parent 70b6f8a056
commit 8bbc239af6

View File

@ -80,6 +80,11 @@ func parseData(scanner *bufio.Scanner, headerMap map[string]int, benchmarkData *
} }
for key, index := range headerMap { for key, index := range headerMap {
// Skip timestamp fields for Afterburner format
if isAfterburner && (index == 1 || index == 2) {
continue
}
val, err := strconv.ParseFloat(record[index], 64) val, err := strconv.ParseFloat(record[index], 64)
if err != nil { if err != nil {
return fmt.Errorf("failed to parse %s value '%s': %v", key, record[index], err) return fmt.Errorf("failed to parse %s value '%s': %v", key, record[index], err)