mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
Always return valid dates for timestamps
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user