this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add logLatency

+5 -1
+5 -1
cli.js
··· 211 211 console.log(bold(' '.repeat(15 - text.length), `${text}:`, blue(data))); 212 212 } 213 213 214 + function logLatency(data) { 215 + console.log(bold(' Latency:', magenta(`${data[3].toFixed(2)} ms`))); 216 + } 217 + 214 218 function logSpeedTestResult(size, test) { 215 219 const speed = stats.median(test).toFixed(2); 216 220 console.log( ··· 226 230 logInfo('Your IP', `${ip} (${loc})`); 227 231 228 232 const ping = await measureLatency(); 229 - console.log(bold(' Latency:', magenta(`${ping[3].toFixed(2)} ms`))); 233 + logLatency(ping); 230 234 231 235 const testDown1 = await measureDownload(101000, 10); 232 236 logSpeedTestResult('100kB', testDown1);