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