Exemplo n.º 1
0
guint32 internetwork_getNodeBandwidthDown(Internetwork* internet, GQuark nodeID) {
	MAGIC_ASSERT(internet);
	Node* node = internetwork_getNode(internet, nodeID);
	NetworkInterface* interface = node_lookupInterface(node, nodeID);
	return networkinterface_getSpeedDownKiBps(interface);
}
Exemplo n.º 2
0
guint32 slave_getNodeBandwidthDown(Slave* slave, GQuark nodeID, in_addr_t ip) {
    MAGIC_ASSERT(slave);
    Host* host = _slave_getHost(slave, nodeID);
    NetworkInterface* interface = host_lookupInterface(host, ip);
    return networkinterface_getSpeedDownKiBps(interface);
}