Browse Source

将日志 与 机器人状态详情进行缓存,

hl 3 weeks ago
parent
commit
a44061bcf5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Interval.js

+ 1 - 1
src/Interval.js

@@ -149,7 +149,7 @@ function cachePredictorState() {
             let port = value.port
             let predictorState = value.predictorState
             if (value.id !== -1 && port !== -1 && value.threadStatus === robot.RobotStatus.RUNNING) {
-                const jsonString = JSON.stringify(messlist);
+                const jsonString = JSON.stringify(predictorState);
                 const byteSize = Buffer.byteLength(jsonString, 'utf8');
                 const megabyteSize = byteSize / (1024 * 1024);
                 logger.info(`~~~缓存机器人状态详情${value.id}--占用大小:${megabyteSize} M`)