Polling is preferred.How does ethtool get included in the CrOS build? I see the ebuild package included in a few board-specific overlays, but not in any generic CrOS system overlay.
--
navigator.connection.addEventListener('change', logNetworkInfo);
function logNetworkInfo() {
// Network type that browser uses
log(' type: ' + navigator.connection.type);
// Effective bandwidth estimate
log(' downlink: ' + navigator.connection.downlink + 'Mb/s');
// Effective round-trip time estimate
log(' rtt: ' + navigator.connection.rtt + 'ms');
// Upper bound on the downlink speed of the first network hop
log(' downlinkMax: ' + navigator.connection.downlinkMax + 'Mb/s');
// Effective connection type determined using a combination of recently
// observed rtt and downlink values: ' +
log('effectiveType: ' + navigator.connection.effectiveType);
// True if the user has requested a reduced data usage mode from the user
// agent.
log(' saveData: ' + navigator.connection.saveData);
}
logNetworkInfo();---
You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.
| ||
Underneath, ethtool uses the SIOCETHTOOL ioctl.