From f86347bc6231e1e8c472f5e44d8024cbe31221f6 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Wed, 19 Sep 2018 16:33:18 -0700 Subject: [PATCH] Always return valid dates for timestamps --- ui/mirage/factories/client-allocation-stats.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/mirage/factories/client-allocation-stats.js b/ui/mirage/factories/client-allocation-stats.js index e4573ed08..369fa4163 100644 --- a/ui/mirage/factories/client-allocation-stats.js +++ b/ui/mirage/factories/client-allocation-stats.js @@ -6,13 +6,15 @@ export default Factory.extend({ _taskNames: () => [], // Set by allocation + timestamp: () => Date.now() * 1000000, + tasks() { var hash = {}; this._taskNames.forEach(task => { hash[task] = { Pids: null, ResourceUsage: generateResources(), - Timestamp: Date.now(), + Timestamp: Date.now() * 1000000, }; }); return hash;