Commit e94316b4 authored by martin hou's avatar martin hou

fix: 增加跟踪日志

parent a25d4fb2
...@@ -695,6 +695,7 @@ Jensen.prototype.listFiles = async function () { ...@@ -695,6 +695,7 @@ Jensen.prototype.listFiles = async function () {
} }
if (fc && fc.count == 0) return []; if (fc && fc.count == 0) return [];
console.log('file count: ' + fc);
let self = this; let self = this;
// let tag = 'data_' + new Date().getTime(); // let tag = 'data_' + new Date().getTime();
...@@ -863,7 +864,7 @@ Jensen.prototype.listFiles = async function () { ...@@ -863,7 +864,7 @@ Jensen.prototype.listFiles = async function () {
{ {
return files.filter((f) => { return Boolean(f.time); }); return files.filter((f) => { return Boolean(f.time); });
} }
else if (fc - files.length < 10) ts = 1000; else if (fc > 0 && fc - files.length < 10) ts = 1000;
else ts = 15000; else ts = 15000;
jensen[kv] = window.setTimeout(() => { jensen[kv] = window.setTimeout(() => {
console.log('remove tag: ' + tag); console.log('remove tag: ' + tag);
......
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