Commit 9150dd55 authored by Geoff Simmons's avatar Geoff Simmons

Query evaluation uses the new float parser for byte slices.

parent d17a0cd9
...@@ -30,7 +30,6 @@ package log ...@@ -30,7 +30,6 @@ package log
import ( import (
"bytes" "bytes"
"strconv"
) )
func bitTest(bits [32]byte, tag uint8) bool { func bitTest(bits [32]byte, tag uint8) bool {
...@@ -111,8 +110,8 @@ func (expr qExpr) testRecord(rec Record) bool { ...@@ -111,8 +110,8 @@ func (expr qExpr) testRecord(rec Record) bool {
return val >= n return val >= n
} }
case float: case float:
val, err := strconv.ParseFloat(string(payload), 64) val, ok := parseFloat64(payload)
if err != nil { if !ok {
return false return false
} }
n := expr.rhs.floatVal n := expr.rhs.floatVal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment