Ignore:
Timestamp:
Jun 26, 2010, 11:39:44 AM (11 years ago)
Author:
Paul Lelgemann
Message:

+ KeySearcher: display of aggregated linkmanager statistics
o KeySearcher: job identifier extended with sample decryption data to preserve decryption algorithm settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/Internal/P2PBase.cs

    r1702 r1704  
    1717
    1818using System;
     19using System.Linq;
    1920using System.Text;
    2021using System.Threading;
     
    479480        #endregion
    480481
     482        #region Statistic Methods
     483
     484        public long TotalBytesSentOnAllLinks()
     485        {
     486            return (long) linkmanager.GetAllLinkInformation().Sum(linkInformation => linkInformation.TotalBytesSent);
     487        }
     488
     489        public long TotalBytesReceivedOnAllLinks()
     490        {
     491            return (long) linkmanager.GetAllLinkInformation().Sum(linkInformation => linkInformation.TotalBytesReceived);
     492        }
     493
     494        #endregion
     495
    481496        #region Log facility
    482497
Note: See TracChangeset for help on using the changeset viewer.