Skip to content

Commit ab6a90b

Browse files
committed
Force update transfer rates after math tests, log total bytes at end
1 parent 10b6034 commit ab6a90b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Classes/FCryptoGMPClient.uc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class FCryptoGMPClient extends TcpLink;
4040
`include(FCrypto\Classes\FCryptoMacros.uci);
4141

4242
const BpsToMbps = 0.000008;
43+
const BytesToMegaBytes = 0.000001;
4344

4445
var private int ClientPort;
4546

@@ -321,6 +322,8 @@ simulated event Tick(float DeltaTime)
321322
`fclog("final transfer rate values:");
322323
LogTransferRates();
323324
ClearTimer(NameOf(LogTransferRates));
325+
`fclog("BytesOut :" @ BytesOut * BytesToMegaBytes @ "MB");
326+
`fclog("BytesIn :" @ BytesIn * BytesToMegaBytes @ "MB");
324327
}
325328
326329
super.Tick(DeltaTime);

Classes/FCryptoTestMutator.uc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,11 @@ private final simulated function int TestMath()
13121312
}
13131313
}
13141314

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+
13151320
return TestFailures;
13161321
}
13171322

0 commit comments

Comments
 (0)