mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 14:45:52 -05:00
Changed moderation from 2 seconds to 1 second
This commit is contained in:
parent
df4c302470
commit
602be8f02f
@ -2197,7 +2197,7 @@ function createMeshCore(agent) {
|
|||||||
});
|
});
|
||||||
this.zip = require('zip-writer').write({ files: p, basePath: cmd.path });
|
this.zip = require('zip-writer').write({ files: p, basePath: cmd.path });
|
||||||
this.zip.xws = this;
|
this.zip.xws = this;
|
||||||
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));
|
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));
|
||||||
this.zip.pipe(out);
|
this.zip.pipe(out);
|
||||||
break;
|
break;
|
||||||
case 'cancel':
|
case 'cancel':
|
||||||
|
Loading…
Reference in New Issue
Block a user