fix bug
This commit is contained in:
parent
48f64466fc
commit
4fd84c74fb
|
|
@ -430,9 +430,9 @@ func getLastMetrics(deveui string) OneMetric {
|
|||
s := strings.Split(scanner.Text(), ",")
|
||||
fmt.Printf("BlaBla: %v\n", s)
|
||||
if (len(s) >= 12) && !(strings.HasPrefix(s[3], "_")) {
|
||||
t, err := time.Parse(time.RFC3339, s[5])
|
||||
t, err := time.Parse(time.RFC3339, s[3])
|
||||
if err != nil {
|
||||
fmt.Printf("error converting time: %s\n", s[5])
|
||||
fmt.Printf("error converting time: %s\n", s[3])
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue