Always return valid dates for timestamps

This commit is contained in:
Michael Lange 2018-09-19 16:33:18 -07:00
parent da06b48aaf
commit f86347bc62
1 changed files with 3 additions and 1 deletions

View File

@ -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;