We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8e0470 commit e3c0993Copy full SHA for e3c0993
transports/janus_mqtt.c
@@ -1612,7 +1612,8 @@ static gboolean janus_mqtt_vacuum(gpointer context) {
1612
1613
while (g_hash_table_iter_next(&iter, NULL, &value)) {
1614
janus_mqtt_transaction_state* state = value;
1615
- if(janus_get_monotonic_time() - state->created_at > ctx->vacuum_interval) {
+ gint64 diff = (janus_get_monotonic_time() - state->created_at) / G_USEC_PER_SEC;
1616
+ if(diff > ctx->vacuum_interval) {
1617
g_hash_table_iter_remove(&iter);
1618
}
1619
0 commit comments