예제 #1
0
 protected override void OnStats(ComparerStats e) {
     base.OnStats(e);
     MsgLine();
     if (e.ErrorRatePer1TB > 0) {
         MsgLine(
             "<error>Error rate: {0:0} / 1TB.</error> {1:0.0}GB tested in {2:0.0}s. Average test speed: {3:0.0}GB/s.",
             e.ErrorRatePer1TB, e.Tested, e.Time, e.Speed
         );
     } else {
         MsgLine(
             "<strong>No errors.</strong> {0:0.0}GB tested in {1:0.0}s. Average test speed: {2:0.0}GB/s.",
             e.Tested, e.Time, e.Speed
         );
     }
 }
예제 #2
0
 protected virtual void OnStats(ComparerStats e) {
     var handler = Stats;
     if (handler != null) handler(this, e);
 }