diff --git a/ui/app/models/allocation.js b/ui/app/models/allocation.js index 889265317..810213bfe 100644 --- a/ui/app/models/allocation.js +++ b/ui/app/models/allocation.js @@ -45,7 +45,7 @@ export default Model.extend({ memoryUsed: computed.readOnly('stats.ResourceUsage.MemoryStats.RSS'), cpuUsed: computed('stats.ResourceUsage.CpuStats.TotalTicks', function() { - return Math.floor(this.get('stats.ResourceUsage.CpuStats.TotalTicks')); + return Math.floor(this.get('stats.ResourceUsage.CpuStats.TotalTicks') || 0); }), percentMemory: computed('taskGroup.reservedMemory', 'memoryUsed', function() {