ziahamza / webui-aria2

The aim for this project is to create the worlds best and hottest interface to interact with aria2. Very simple to use, just download and open index.html in any web browser.
MIT License
9.92k stars 1.47k forks source link

Problem about the number of files that have been downloaded #596

Closed SmallDryad closed 2 years ago

SmallDryad commented 2 years ago

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

SmallDryad commented 2 years ago

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

SmallDryad commented 2 years ago

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:

SmallDryad commented 2 years ago

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

SmallDryad commented 2 years ago

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