You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
RemoteDebugger: Fix possible division by zero
This commit is contained in:
@@ -76,6 +76,7 @@ public:
|
|||||||
NetworkProfiler() {}
|
NetworkProfiler() {}
|
||||||
|
|
||||||
int bandwidth_usage(const Vector<BandwidthFrame> &p_buffer, int p_pointer) {
|
int bandwidth_usage(const Vector<BandwidthFrame> &p_buffer, int p_pointer) {
|
||||||
|
ERR_FAIL_COND_V(p_buffer.size() == 0, 0);
|
||||||
int total_bandwidth = 0;
|
int total_bandwidth = 0;
|
||||||
|
|
||||||
uint32_t timestamp = OS::get_singleton()->get_ticks_msec();
|
uint32_t timestamp = OS::get_singleton()->get_ticks_msec();
|
||||||
|
|||||||
Reference in New Issue
Block a user