mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 03:34:15 +00:00
FS-6927 #comment allow sub millisecond resolution for option ping times
This commit is contained in:
1 parent
3c1ad1f014
commit
3b9f0c32e6
4 files changed
+6
-6
No files matched your search
@@ -5683,7 +5683,7 @@ static void sofia_handle_sip_r_options(switch_core_session_t *session, int statu
|
||||
gateway->name, status, gateway->ping_min, gateway->ping_count, gateway->ping_max, sofia_gateway_status_name(gateway->status));
|
||||
}
|
||||
if (gateway->ping_sent) {
|
||||
gateway->ping_time = (switch_micro_time_now() - gateway->ping_sent) / 1000;
|
||||
gateway->ping_time = (float)(switch_time_now() - gateway->ping_sent) / 1000;
|
||||
gateway->ping_sent = 0;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user