|
|
@ -5,6 +5,7 @@ import (
|
|
|
|
"encoding/json"
|
|
|
|
"encoding/json"
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"io/ioutil"
|
|
|
|
"io/ioutil"
|
|
|
|
|
|
|
|
"math"
|
|
|
|
"strconv"
|
|
|
|
"strconv"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
@ -52,6 +53,8 @@ func (m *FalconMetric) Clean(ts int64) error {
|
|
|
|
return fmt.Errorf("unparseable value %v", v)
|
|
|
|
return fmt.Errorf("unparseable value %v", v)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m.Value = math.Round(m.Value*100000) / 100000
|
|
|
|
|
|
|
|
|
|
|
|
// if timestamp bigger than 32 bits, likely in milliseconds
|
|
|
|
// if timestamp bigger than 32 bits, likely in milliseconds
|
|
|
|
if m.Timestamp > 0xffffffff {
|
|
|
|
if m.Timestamp > 0xffffffff {
|
|
|
|
m.Timestamp /= 1000
|
|
|
|
m.Timestamp /= 1000
|
|
|
|