Don't use removed stat metric in libtorrent 2.0

For now, the metric is not entirely removed due to WebAPI still needs to
access it.
This commit is contained in:
Chocobo1
2020-12-24 11:54:33 +08:00
committed by sledgehammer999
parent 22f3abc4b5
commit ef92c17192
6 changed files with 20 additions and 6 deletions

View File

@@ -197,7 +197,9 @@ namespace BitTorrent
{
int diskBlocksInUse = -1;
int numBlocksRead = -1;
#if (LIBTORRENT_VERSION_NUM < 20000)
int numBlocksCacheHits = -1;
#endif
int writeJobs = -1;
int readJobs = -1;
int hashJobs = -1;