Commit 0daebccc authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent f5abce70
...@@ -126,18 +126,8 @@ async function run(root,name, directory, timestamp) { ...@@ -126,18 +126,8 @@ async function run(root,name, directory, timestamp) {
las.push(last[i]) las.push(last[i])
} }
const json = require('big-json');
const stringifyStream = json.createStringifyStream({
body: las
});
stringifyStream.on('data', function(strChunk) {
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV(root,timestamp, name, strChunk)
});
createfileADV(root,timestamp, name, JSON.stringify(las, null, 2))
last = [] last = []
} }
......
...@@ -124,18 +124,7 @@ async function run(root, name, directory, timestamp) { ...@@ -124,18 +124,7 @@ async function run(root, name, directory, timestamp) {
} }
const json = require('big-json'); createfileADV(root, timestamp, name, JSON.stringify(las, null, 2))
const stringifyStream = json.createStringifyStream({
body: las
});
stringifyStream.on('data', function(strChunk) {
console.log(strChunk)
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV(root,timestamp, name, strChunk)
});
last = [] last = []
} }
......
...@@ -125,22 +125,11 @@ async function run(root,name, directory, timestamp) { ...@@ -125,22 +125,11 @@ async function run(root,name, directory, timestamp) {
let las = [] let las = []
for (let i = 0; i < last.length; i++) { for (let i = 0; i < last.length; i++) {
if (i < last.length) if (i < last.length)
if (last[i].total > 0)
las.push(last[i]) las.push(last[i])
} }
const json = require('big-json'); createfileADV(root,timestamp, name, JSON.stringify(las, null, 2))
const stringifyStream = json.createStringifyStream({
body: las
});
stringifyStream.on('data', function(strChunk) {
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV(root,timestamp, name, strChunk)
});
last = [] last = []
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment