Selaa lähdekoodia

速度上报记录优化

chengqian 4 kuukautta sitten
vanhempi
commit
a9c2e96359
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. BIN
      build/smart_intersectionV2.0
  2. 4 4
      service/deviceMgr.go

BIN
build/smart_intersectionV2.0


+ 4 - 4
service/deviceMgr.go

@@ -123,10 +123,10 @@ func (s *Device) Process() {
 			}
 		}
 
-		//if strings.Contains(data, `"status":"none"`) {
-		//	s.SumHighSpeed = 0
-		//	s.SumLowSpeed = 0
-		//}
+		if strings.Contains(data, `"status":"none"`) {
+			s.SumHighSpeed = 0
+			s.SumLowSpeed = 0
+		}
 
 	}
 }