ziahamza/webui-aria2

Problem about the number of files that have been downloaded

SmallDryad opened this issue · 4 comments

When I downloaded more than 1000 files, I found that the number of files became to 1000 / 1000
I changed the code in main.js :
rpc.subscribe('tellStopped', [0, 10], function(data) { scope.$apply(function() { utils.mergeMap(data[0], scope.stopped, scope.getCtx); }); });
It became to 10/10
But the code is:
rpc.subscribe('tellStopped', [0, 999999], function(data) { scope.$apply(function() { utils.mergeMap(data[0], scope.stopped, scope.getCtx); }); });
It's still 1000 / 1000
how can it show the correct files number

acitive:2, waiting:1800,stopped:200, total:2002
acitive:2, waiting:1000,stopped:1000, total:2002
acitive:2, waiting:800,stopped:1000, total:1802
acitive:2, waiting:400,stopped:1000, total:1402
acitive:2, waiting:0,stopped:1000, total:1002
acitive:0, waiting:0,stopped:1000, total:1000

I have modified the code in settings.js:
"max-download-result": { val: 999999, desc: "Set maximum number of download result kept in memory. The download results are completed/error/removed downloads. The download results are stored in FIFO queue and it can store at most NUM download results. When queue is full and new download result is created, oldest download result is removed from the front of the queue and new one is pushed to the back. Setting big number in this option may result high memory consumption after thousands of downloads. Specifying 0 means no download result is kept. Default: 999999" },
BUT it didn't work, so I thought I could change the code of aria2:

I add a new code into the aria2 start program:
--max-download-result=999999
the max download result number exceeded 1000

Now can someone tell me if the code in settings.js is just illustrative?If so, I'm afraid I've taken the time to put useful Settings into the launcher I wrote myself