mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Refactor pithy print for RTC
This commit is contained in:
		
							parent
							
								
									59dc771dd5
								
							
						
					
					
						commit
						863d6b4f15
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1740,8 +1740,9 @@ srs_error_t SrsRtcServer::cycle()
 | 
			
		|||
                pps_unit = "(k)"; pps_last /= 1000; pps_average /= 1000;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            srs_trace("-> RTC #%d SEND %d/%d/%" PRId64 ", pps %d/%d%s, schedule %d/%d, sessions %d by sendmmsg %d",
 | 
			
		||||
                srs_netfd_fileno(stfd), pos, nn_msgs_max, nn_msgs, pps_average, pps_last, pps_unit.c_str(), nn_loop, nn_wait, (int)map_username_session.size(), max_sendmmsg);
 | 
			
		||||
            srs_trace("-> RTC #%d SEND %d/%d/%" PRId64 ", pps %d/%d%s, schedule %d/%d, sessions %d, cache %d/%d by sendmmsg %d",
 | 
			
		||||
                srs_netfd_fileno(stfd), pos, nn_msgs_max, nn_msgs, pps_average, pps_last, pps_unit.c_str(), nn_loop, nn_wait,
 | 
			
		||||
                (int)map_username_session.size(), (int)cache.size(), (int)hotspot.size(), max_sendmmsg);
 | 
			
		||||
            nn_msgs_last = nn_msgs; time_last = srs_get_system_time();
 | 
			
		||||
            nn_loop = nn_wait = nn_msgs_max = 0;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue