Ignore:
Timestamp:
Jun 25, 2010, 6:44:38 PM (11 years ago)
Author:
Paul Lelgemann
Message:

o P2PEditor: fix for local filename problem
+ KeySearcher: debug log entry for sent/received bytes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/P2P/Storage/StorageHelper.cs

    r1693 r1703  
    133133            statusContainer.RetrieveRequests++;
    134134            statusContainer.TotalDhtRequests++;
    135             return P2PManager.Retrieve(key);
     135            var requestResult = P2PManager.Retrieve(key);
     136
     137            if (requestResult.Data != null)
     138            {
     139                statusContainer.RetrievedBytes += requestResult.Data.Length;
     140            }
     141
     142            return requestResult;
    136143        }
    137144
     
    147154            statusContainer.StoreRequests++;
    148155            statusContainer.TotalDhtRequests++;
    149             return P2PManager.Store(key, data);
     156            var requestResult = P2PManager.Store(key, data);
     157
     158            if (requestResult.Data != null)
     159            {
     160                statusContainer.StoredBytes += requestResult.Data.Length;
     161            }
     162
     163            return requestResult;
    150164        }
    151165    }
Note: See TracChangeset for help on using the changeset viewer.