File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ class FCryptoGMPClient extends TcpLink;
40
40
`include (FCrypto \Classes \FCryptoMacros .uci );
41
41
42
42
const BpsToMbps = 0.000008 ;
43
+ const BytesToMegaBytes = 0.000001 ;
43
44
44
45
var private int ClientPort ;
45
46
@@ -321,6 +322,8 @@ simulated event Tick(float DeltaTime)
321
322
`fclog(" final transfer rate values :");
322
323
LogTransferRates();
323
324
ClearTimer(NameOf(LogTransferRates));
325
+ `fclog(" BytesOut :" @ BytesOut * BytesToMegaBytes @ " MB ");
326
+ `fclog(" BytesIn :" @ BytesIn * BytesToMegaBytes @ " MB ");
324
327
}
325
328
326
329
super.Tick(DeltaTime);
Original file line number Diff line number Diff line change @@ -1312,6 +1312,11 @@ private final simulated function int TestMath()
1312
1312
}
1313
1313
}
1314
1314
1315
+ // Force sample update since timer in GMPClient might not
1316
+ // fire at the right time to update samples between tests.
1317
+ GMPClient .StopTransferRateSample ();
1318
+ GMPClient .LogTransferRates ();
1319
+
1315
1320
return TestFailures ;
1316
1321
}
1317
1322
You can’t perform that action at this time.
0 commit comments