Merge pull request #96464 from Faless/mp/fix_profiler_divsion_by_zero
[MP] Fix division by zero in network profiler
This commit is contained in:
commit
7c383767a2
1 changed files with 2 additions and 2 deletions
|
@ -227,10 +227,10 @@ void EditorNetworkProfiler::add_sync_frame_data(const SyncInfo &p_frame) {
|
|||
sync_data[p_frame.synchronizer].outgoing_syncs += p_frame.outgoing_syncs;
|
||||
}
|
||||
SyncInfo &info = sync_data[p_frame.synchronizer];
|
||||
if (info.incoming_syncs) {
|
||||
if (p_frame.incoming_syncs) {
|
||||
info.incoming_size = p_frame.incoming_size / p_frame.incoming_syncs;
|
||||
}
|
||||
if (info.outgoing_syncs) {
|
||||
if (p_frame.outgoing_syncs) {
|
||||
info.outgoing_size = p_frame.outgoing_size / p_frame.outgoing_syncs;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue