From 7e2f5624ba79ef83d0ade1186eb8f728bce2d20d Mon Sep 17 00:00:00 2001 From: emizzle Date: Wed, 6 Jun 2018 12:04:30 +1000 Subject: [PATCH] Increased time before reporting of library download duration goes red to 4 seconds. Incrased travis build version to node 8, as embark only supports 8.10, and also perf_hooks requires 8.5 --- .travis.yml | 2 +- lib/versions/npm.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1019d91d..b9912bde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - "7" + - "8" addons: code_climate: repo_token: 7454b1a666015e244c384d19f48c34e35d1ae58c3aa428ec542f10bbcb848358 diff --git a/lib/versions/npm.js b/lib/versions/npm.js index f7ca1751..0f245f78 100644 --- a/lib/versions/npm.js +++ b/lib/versions/npm.js @@ -43,7 +43,7 @@ class Npm { // log our measurement and make it red if it has taken too long if(entry && strDuration){ - if(entry.duration > 1000){ + if(entry.duration > 4000){ strDuration = strDuration.red; } this.logger.info(strDuration);