diff --git a/files/mongo/venus-stats.js b/files/mongo/venus-stats.js index d295e10..b80210e 100644 --- a/files/mongo/venus-stats.js +++ b/files/mongo/venus-stats.js @@ -60,7 +60,7 @@ if (args["insert"] == 'yes'){ }, }); var datajsontmp = stdout.toString() - var datajson = mysearch(devname, datajsontmp); + var datajson = mysearch(devname, Object.values(datajsontmp)); console.error('exec ' + JSON.stringify(datajson)); } catch (error) { var datajson = error.toString()