Browse Source

promethus

lijian 2 years ago
parent
commit
a2ae1a467b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      services/mqttaccess/mqtt_provider.go

+ 3 - 3
services/mqttaccess/mqtt_provider.go

@@ -57,9 +57,9 @@ func (mp *MQTTProvider) OnDeviceOnline(args rpcs.ArgsGetOnline, VendorId string)
 	return err
 }
 func (mp *MQTTProvider) OnDeviceOffline(deviceid string, vendorId string) error {
-	if deviceid != "" {
-		deviceOnlineCount.Dec()
-	}
+	//if deviceid != "" {
+	//	deviceOnlineCount.Dec()
+	//}
 	args := rpcs.ArgsGetOffline{
 		Id:       deviceid,
 		VendorId: vendorId,