add net_interface_stat.speed
This commit is contained in:
		
							parent
							
								
									335756bdb3
								
							
						
					
					
						commit
						39e0b3b948
					
				@ -2140,7 +2140,7 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name,
 | 
				
			|||||||
        ifstat->tx_collisions = data.if_collisions;
 | 
					        ifstat->tx_collisions = data.if_collisions;
 | 
				
			||||||
        ifstat->tx_carrier    = SIGAR_FIELD_NOTIMPL;
 | 
					        ifstat->tx_carrier    = SIGAR_FIELD_NOTIMPL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        ifstat->speed         = SIGAR_FIELD_NOTIMPL;
 | 
					        ifstat->speed         = data.if_baudrate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return SIGAR_OK;
 | 
					        return SIGAR_OK;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -786,7 +786,7 @@ int sigar_net_interface_stat_get(sigar_t *sigar, const char *name,
 | 
				
			|||||||
    ifstat->tx_collisions = SIGAR_FIELD_NOTIMPL;
 | 
					    ifstat->tx_collisions = SIGAR_FIELD_NOTIMPL;
 | 
				
			||||||
    ifstat->tx_carrier    = SIGAR_FIELD_NOTIMPL;
 | 
					    ifstat->tx_carrier    = SIGAR_FIELD_NOTIMPL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ifstat->speed         = SIGAR_FIELD_NOTIMPL;
 | 
					    ifstat->speed         = mib.ifSpeed;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return SIGAR_OK;
 | 
					    return SIGAR_OK;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user