From 7f8ea1bc3c35cf0a8cc823f3941273f855901cc4 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Thu, 7 Apr 2016 08:40:33 +0200 Subject: [PATCH] Use normal linear scale for open-files MoC Now that we have the real max!! \o/ --- client/app/scripts/utils/metric-utils.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/app/scripts/utils/metric-utils.js b/client/app/scripts/utils/metric-utils.js index 3a9f8ee62..9eed53ad3 100644 --- a/client/app/scripts/utils/metric-utils.js +++ b/client/app/scripts/utils/metric-utils.js @@ -22,9 +22,6 @@ export function getClipPathDefinition(clipId, size, height, } -// -// Open files, 100k should be enought for anyone? -const openFilesScale = d3.scale.log().domain([1, 100000]).range([0, 1]); // // loadScale(1) == 0.5; E.g. a nicely balanced system :). const loadScale = d3.scale.log().domain([0.01, 100]).range([0, 1]); @@ -39,10 +36,7 @@ export function getMetricValue(metric, size) { let valuePercentage = value === 0 ? 0 : value / m.max; let max = m.max; - if (m.id === 'open_files_count') { - valuePercentage = openFilesScale(value); - max = null; - } else if (_.includes(['load1', 'load5', 'load15'], m.id)) { + if (_.includes(['load1', 'load5', 'load15'], m.id)) { valuePercentage = loadScale(value); max = null; }