Commit 30909106 authored by martin hou's avatar martin hou

fix: 恢复进度汇报处理办法

parent 67bcc398
......@@ -385,7 +385,7 @@ function Jensen(log, conn) {
this.busy = function() {
// return Boolean(current);
return false;
return false
}
const tryReceive = function () {
......@@ -1021,7 +1021,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
{
let percent = Math.floor(recvBytes / length * 100);
let k = 't' + percent;
if (percent % 5 == 0 && percent > 0 && percent < 100 && !(k in this._progress_report))
if (percent % 5 == 0 && percent > 0 && percent < 100)
{
Logger.info('jensen', 'file-transfer', percent);
this._progress_report[k] && onprogress?.(recvBytes);
......
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