rejetto forum
Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: vbn on May 19, 2010, 04:24:07 AM
-
I have a serious accounting issue :)
If a file is being download by a download manager/accelerator in multi-threaded mode, each thread adds to the 'Hits' stat...isnt there a way to properly increment this as 1 irrespective of the parts being downloaded !
-
If a file is being download by a download manager/accelerator in multi-threaded mode, each thread adds to the 'Hits' stat...isnt there a way to properly increment this as 1 irrespective of the parts being downloaded !
Don't think so as every new part being downloaded is a new download connection to the server. If you are allowing the use of download managers you might have to live with things like this.
-
Correct ... thats what 'Hits' is supposed to mean also...
but isnt there a way of counting 'Downloads' also.... a whole file should count as 1 irrespective of the parts being split into.
Any MODs someone has already done would like to share....really in need of this ;D
-
sorry for the late reply.
what version are you using?
in hfs 2.3 downloads are supposed to be counted just as full downloads.
if you mean "total hits", you will also find "total downloads".
-
Sorry was out of country.... I am running latest Beta
...so we have 2 seperate counters now - Hits & Downloads ?
What keywords are used for both ?
-
you can have a look to the wiki at TEMPLATE SYMBOL part
http://www.rejetto.com/wiki/index.php?title=HFS:_Template_symbols
;)
-
please specify WHERE are you looking,
there are many numbers over the program
-
Sorry was out of country.... I am running latest Beta
...so we have 2 seperate counters now - Hits & Downloads ?
What keywords are used for both ?
please specify WHERE are you looking,
there are many numbers over the program
files+folders hits -->> %item-dl-count%
downloads -->> %total-downloads%
......
-
OK....%total-downloads% seems to be the total number of downloads by HFS altogether ... not related to a particular file in any way
which brings back to original question :
%item-dl-count% : Number of hits for a file which means 3 threads of download using an accelerator get counted as 3 and not 1
??? : Counts unique download requests irrespective of number of threads from client side
This is my dilemma...not sure if this is already builtin or if can be ?
-
to have the real total number of downloads, you must stop download accelerator (check limits -->> Prevent leeching)
;)
-
Ouch...that defeats the purpose for which I am using HFS ... its a File Server and runs continously with a bandwidth of around 60-100 Mbps downloads.
Anyways... maybe something can be incoporated in later builds...just a request :)
-
why are you saying that?
for what i can see, the item-dl-count is counting only full downloads.
am i wrong?
-
please boss and others, when you ask someone, can you use @mars .... @userX to specify which interlocutor? ;)
-
you, mars
-
@rejetto
"for what i can see, the item-dl-count is counting only full downloads."
you are right ;) one point to you :D
-
ok, vbn, it already works as you need it
-
@rejetto :
??? I dont think so ... HFS is counting each thread of download as 1 instead of whole file which means if a user downloads a file using accelerator like Flashget using split into 3 threads... the item-dl-count increments by 3 and NOT 1.
You can test yourself @ http://www.vbnfiles.com/xda/vbn ... try any file above 1 MB
That is what my question and dilemma is...
-
ok, i will install an accelerator and test myself. I have none at this moment.
-
Appreciate it...Thanks
-
@rejetto : Any word on this :)
-
i just used FDM to download a 6MB file using 4 threads, on my local hfs.
the counter raised just by 1, correctly.
then i used FDM to download a 1MB file from you, it used 2 threads.
the counter again raised just by 1.
-
Hmm..maybe its the latest beta ??? because its fine now ...
Anyways I am happy its working as desired ;D
-
i don't think it's related to the beta, since i firstly replied you reading the code of the previous build.