Changed moderation from 2 seconds to 1 second

Bryan Roe committed Sep 2, 2020 at 23:06 UTC 602be8f02f637db5b6e2b0408488cc7067de3743
1 file changed +1 -1
agents/meshcore.js
+1 -1
@@ -2197,7 +2197,7 @@ function createMeshCore(agent) {
2197 });
2198 this.zip = require('zip-writer').write({ files: p, basePath: cmd.path });
2199 this.zip.xws = this;
2200 - this.zip.on('progress', require('events').moderated(function (name, p) { this.xws.write(Buffer.from(JSON.stringify({ action: 'dialogmessage', msg: 'zippingFile', file: ((process.platform == 'win32') ? (name.split('/').join('\\')) : name), progress: p }))); }, 2000));
2200 + this.zip.on('progress', require('events').moderated(function (name, p) { this.xws.write(Buffer.from(JSON.stringify({ action: 'dialogmessage', msg: 'zippingFile', file: ((process.platform == 'win32') ? (name.split('/').join('\\')) : name), progress: p }))); }, 1000));
2201 this.zip.pipe(out);
2202 break;
2203 case 'cancel':