Skip to content
Snippets Groups Projects

Show worker costs

Merged ml bonhomme requested to merge costs into release-1.7.2
All threads resolved!
4 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -33,7 +33,7 @@ export default defineComponent({
return WORKER_TYPE_COLORS[this.workerType]?.cssClass ?? WORKER_TYPE_COLORS.default.cssClass
},
hasCost () {
return this.worker.cost_gpu_hour | this.worker.cost_cpu_hour | this.worker.cost_1k_elements
return parseFloat(this.worker.cost_gpu_hour) > 0 || parseFloat(this.worker.cost_cpu_hour) > 0 || parseFloat(this.worker.cost_1k_elements) > 0
}
}
})
Loading