add: file_num offset

This commit is contained in:
Kingtous committed 2022-05-16 14:45:17 +08:00
1 parent 9dbd94daac
commit a2bc2a21bb
8 files changed
+25 -12

No files matched your search

+2 -2
View File
@@ -125,7 +125,7 @@ class JobTable: Reactor.Component {
include_hidden: show_hidden,
is_remote: is_remote });
this.job_map[id] = this.jobs[this.jobs.length - 1];
handler.send_files(id, path, to, show_hidden, is_remote);
handler.send_files(id, path, to, 0, show_hidden, is_remote);
var self = this;
self.timer(30ms, function() { self.update(); });
}
@@ -138,7 +138,7 @@ class JobTable: Reactor.Component {
this.jobs.push(job);
this.job_map[id] = this.jobs[this.jobs.length - 1];
jobIdCounter = id + 1;
handler.send_files(id, path, to, show_hidden, is_remote);
handler.send_files(id, path, to, file_num, show_hidden, is_remote);
stdout.println(JSON.stringify(job));
}