summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NetGame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/NetGame.cpp')
-rw-r--r--Stars45/NetGame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Stars45/NetGame.cpp b/Stars45/NetGame.cpp
index 2e0e8eb..26a5a0d 100644
--- a/Stars45/NetGame.cpp
+++ b/Stars45/NetGame.cpp
@@ -80,7 +80,7 @@ NetGame::~NetGame()
players.destroy();
if (link) {
- double delta = fabs(NetLayer::GetUTC() - start_time);
+ double delta = fabs((double)(NetLayer::GetUTC() - start_time));
double bandwidth = 10.0 * (link->GetBytesSent() + link->GetBytesRecv()) / delta;
double recvrate = link->GetPacketsRecv() / delta;