Skip to content

Commit b325126

Browse files
committed
net: Add logging for PID sync parameters.
1 parent fea3b29 commit b325126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/net_client.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ static void UpdateClockSync(unsigned int seq,
215215
last_error = error;
216216
last_latency = latency;
217217

218-
//printf("%i,%i,%i\n", latency, remote_latency, offsetms);
218+
NET_Log("client: latency %d, remote %d -> offset=%dms, cumul_error=%d",
219+
latency, remote_latency, offsetms / FRACUNIT, cumul_error);
219220
}
220221

221222
// Expand a net_full_ticcmd_t, applying the diffs in cmd->cmds as

0 commit comments

Comments
 (0)