github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/helpers/format-scheduled-hertz.js (about) 1 import Helper from '@ember/component/helper'; 2 import { formatScheduledHertz } from 'nomad-ui/utils/units'; 3 4 /** 5 * Scheduled Hertz Formatter 6 * 7 * Usage: {{format-scheduled-hertz hertz}} 8 * 9 * Outputs the frequency reduced to the resolution the scheduler 10 * and job spec operate at. 11 */ 12 function formatScheduledHertzHelper([hertz], { start }) { 13 return formatScheduledHertz(hertz, start || 'MHz'); 14 } 15 16 export default Helper.helper(formatScheduledHertzHelper);