summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-21 23:07:38 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:06 +0200
commit10665e285b4b6f78b977b8f8fc0549a2bbab84cb (patch)
treed7abe73f01c02542551efe428d1ee770cb61d970 /src/util
parenta5bc25e5af79cf0bc7e0034b0a7c04d368a841bd (diff)
Add load color legend
Diffstat (limited to 'src/util')
-rw-r--r--src/util/simulation-load.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/simulation-load.js b/src/util/simulation-load.js
index 224dc6f4..55c37929 100644
--- a/src/util/simulation-load.js
+++ b/src/util/simulation-load.js
@@ -1,5 +1,11 @@
import {SIM_HIGH_COLOR, SIM_LOW_COLOR, SIM_MID_HIGH_COLOR, SIM_MID_LOW_COLOR} from "../colors/index";
+export const LOAD_NAME_MAP = {
+ LOAD: "computational load",
+ TEMPERATURE: "temperature",
+ MEMORY: "memory use",
+};
+
export function convertLoadToSimulationColor(load) {
if (load <= 0.25) {
return SIM_LOW_COLOR;