Official eMule-Board: A Small Known Bug In File Details Dlg - Official eMule-Board

Jump to content


Page 1 of 1

A Small Known Bug In File Details Dlg compression percent.

#1 User is offline   Avi-3k 

  • hebMule [retired] dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,127
  • Joined: 25-June 03

Posted 06 October 2005 - 09:45 AM

we all know that sometimes eMule shows a weird
value for the compression percent for files in the details dlg...

the formula (from FileDetailDialogInfo.cpp, line 287)
uTransferred!=0 ? (uCompression * 100.0 / uTransferred) : 0.0

but afaik compressed data isn't counted at part of the transferred data.
i've check and it seems this is the right formula

Quote

(uTransferred+uCompression) ? (uCompression * 100.0 / (uTransferred+uCompression)) : 0.0

i've also checked with a file which received corrupted data
and the values seem fine...

is this the right formula? or is there another one?

Avi3k
retired developer of hebMule and eMule Skinner...
hebMule site and topic.
hebMule2 unique features: AntiLeech, AntiVirus, Fake Check, ServerFilter, WebSearches, Export Searches, Relative Priority, ModID and much much more...

eMule Skinner is an application to create/edit skins for eMule,
it's multilingual, supports mods, easy-to-use design, integrates to hebMule & Windows and lots more...

code fixes/improvements: #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 (to check/verify: #12, #13).
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users