|
@@ -32,7 +32,7 @@ func main() {
|
|
lastStatus := "NONE"
|
|
lastStatus := "NONE"
|
|
// 轮询任务接口判断是否有更新
|
|
// 轮询任务接口判断是否有更新
|
|
for {
|
|
for {
|
|
- c_log.GlobalLogger.Error("一次循环时间%v秒:", turnLength)
|
|
|
|
|
|
+ c_log.GlobalLogger.Errorf("一轮次扫描时间【%v】秒:", turnLength)
|
|
time.Sleep(time.Duration(turnLength) * time.Second)
|
|
time.Sleep(time.Duration(turnLength) * time.Second)
|
|
// 1 获取当前设备的任务的 status
|
|
// 1 获取当前设备的任务的 status
|
|
status, err := commonConfig.GetStatus(commonConfig.PlatformConfig.TaskConfigId)
|
|
status, err := commonConfig.GetStatus(commonConfig.PlatformConfig.TaskConfigId)
|