Always return valid dates for timestamps
This commit is contained in:
parent
da06b48aaf
commit
f86347bc62
|
@ -6,13 +6,15 @@ export default Factory.extend({
|
||||||
|
|
||||||
_taskNames: () => [], // Set by allocation
|
_taskNames: () => [], // Set by allocation
|
||||||
|
|
||||||
|
timestamp: () => Date.now() * 1000000,
|
||||||
|
|
||||||
tasks() {
|
tasks() {
|
||||||
var hash = {};
|
var hash = {};
|
||||||
this._taskNames.forEach(task => {
|
this._taskNames.forEach(task => {
|
||||||
hash[task] = {
|
hash[task] = {
|
||||||
Pids: null,
|
Pids: null,
|
||||||
ResourceUsage: generateResources(),
|
ResourceUsage: generateResources(),
|
||||||
Timestamp: Date.now(),
|
Timestamp: Date.now() * 1000000,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
return hash;
|
return hash;
|
||||||
|
|
Loading…
Reference in New Issue