From 2ab9cff1a8e78d24d8ae2decf3c679bc1e30dbe9 Mon Sep 17 00:00:00 2001 From: Devon Rifkin Date: Fri, 14 Apr 2017 02:21:15 -0700 Subject: [PATCH] Fix `--latency` option The code for this option wasn't modified for breaking changes introduced when deps were updated in ea237e343c0081bbf5725b96f8c3d8cea9b495cd --- lib/progressTracker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/progressTracker.js b/lib/progressTracker.js index 0e676903..dd012edc 100644 --- a/lib/progressTracker.js +++ b/lib/progressTracker.js @@ -91,7 +91,7 @@ function track (instance, opts) { logToStream(out) if (opts.renderLatencyTable) { - const latency = table.default([ + const latency = table([ asColor(chalk.cyan, ['Percentile', 'Latency (ms)']) ].concat(percentiles.map((perc) => { const key = ('p' + perc).replace('.', '') @@ -100,7 +100,7 @@ function track (instance, opts) { result.latency[key] ] })), { - border: table.getBorderCharacters('void'), + border: getBorderCharacters('void'), columnDefault: { paddingLeft: 0, paddingRight: 6