mirror of
				https://github.com/ShaYmez/HBmonitor.git
				synced 2025-11-03 13:10:25 -05:00 
			
		
		
		
	work on stats
This commit is contained in:
		
							parent
							
								
									9a82e0d743
								
							
						
					
					
						commit
						311b953900
					
				@ -237,12 +237,13 @@ def build_stats():
 | 
				
			|||||||
def table_update(p):
 | 
					def table_update(p):
 | 
				
			||||||
    action = p[1]
 | 
					    action = p[1]
 | 
				
			||||||
    system = p[2]
 | 
					    system = p[2]
 | 
				
			||||||
    timeSlot = p[6]
 | 
					    timeSlot = int(p[6])
 | 
				
			||||||
    callType = p[0]
 | 
					    callType = p[0]
 | 
				
			||||||
    sourceSub = p[5]
 | 
					    sourceSub = int(p[5])
 | 
				
			||||||
    sourcePeer = p[4]
 | 
					    sourcePeer = int(p[4])
 | 
				
			||||||
    destination = p[7]
 | 
					    destination = int(p[7])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if system in CTABLE['MASTERS']:
 | 
				
			||||||
        if action == 'START':
 | 
					        if action == 'START':
 | 
				
			||||||
            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['TS'] = True
 | 
					            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['TS'] = True
 | 
				
			||||||
            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['TYPE'] = callType
 | 
					            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['TYPE'] = callType
 | 
				
			||||||
@ -256,7 +257,7 @@ def table_update(p):
 | 
				
			|||||||
            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['SRC'] = ''
 | 
					            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['SRC'] = ''
 | 
				
			||||||
            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['DEST'] = ''       
 | 
					            CTABLE['MASTERS'][system]['PEERS'][sourcePeer][timeSlot]['DEST'] = ''       
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    build_Stats()
 | 
					        build_stats()
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# PROCESS IN COMING MESSAGES AND TAKE THE CORRECT ACTION DEPENING ON THE OPCODE
 | 
					# PROCESS IN COMING MESSAGES AND TAKE THE CORRECT ACTION DEPENING ON THE OPCODE
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user