Skip to content

Commit

Permalink
📝 improve log message
Browse files Browse the repository at this point in the history
  • Loading branch information
spacetourist committed Mar 28, 2024
1 parent 9f69e67 commit e4dfe7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/load_balancer/load_balancer.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,10 @@ static void lb_update_max_loads(unsigned int ticks, void *param)
dst->rmap[ri].max_sessions = dst->fs_sock->stats.max_sess;
dst->rmap[ri].current_sessions = dst->fs_sock->stats.sess;
dst->rmap[ri].cpu_idle = dst->fs_sock->stats.id_cpu / (float)100;
/* reset sessions since last heartbeat counter */
/*
* reset sessions since last heartbeat counter
* todo ideally this happens when the heartbeat arrives, this fires according to fetch_freeswitch_stats timer
*/
dst->rmap[ri].sessions_since_last_heartbeat = 0;

if (psz < dst->fs_sock->stats.max_sess) {
Expand Down

0 comments on commit e4dfe7a

Please sign in to comment.