Official eMule-Board: Do Not Purge Statistics - Official eMule-Board

Jump to content


Page 1 of 1

Do Not Purge Statistics when cleaning know.met files Rate Topic: -----

#1 User is offline   fox88 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 4974
  • Joined: 13-May 07

Posted 11 May 2015 - 10:37 AM

Wnen eMule removes old file AICH hashes from known.met file, it also discards a number of related data items.
Most of those items become obsolete with time, but I do not see why statistics is purged.
One day you decide to reshare old files and it is as if the files were never shared at all.
It takes only about 20 bytes per file, and zero values are already omitted to save space.

Implementation is simple.
In KnownFile.cpp, method bool CKnownFile::WriteToFile(CFileDataIO* file), starting at the line
if (!ShouldPartiallyPurgeFile())

do the following changes:
Spoiler


Only 4 lines added/changed.

This post has been edited by fox88: 02 August 2015 - 10:18 PM

1

  • Member Options

Page 1 of 1

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