Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active September 27, 2015 17:37
Show Gist options
  • Save stefanschmidt/cceed6fd6d416abe4d21 to your computer and use it in GitHub Desktop.
Save stefanschmidt/cceed6fd6d416abe4d21 to your computer and use it in GitHub Desktop.
Ookla Speedtest CLI customization
// available at https://github.com/sindresorhus/speed-test
function render() {
logUpdate([
'↻ ' + stats.ping + getSpinner('ping'),
'↓ ' + stats.download + getSpinner('download'),
'↑ ' + stats.upload + getSpinner('upload')
].join('\n'));
}
// to select a specific server for testing get a server id
// from http://www.speedtest.net/speedtest-servers.php
var st = speedtest({maxTime: 20000, serverId: 123456});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment