github.com/hernad/nomad@v1.6.112/ui/app/helpers/format-scheduled-hertz.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import Helper from '@ember/component/helper'; 7 import { formatScheduledHertz } from 'nomad-ui/utils/units'; 8 9 /** 10 * Scheduled Hertz Formatter 11 * 12 * Usage: {{format-scheduled-hertz hertz}} 13 * 14 * Outputs the frequency reduced to the resolution the scheduler 15 * and job spec operate at. 16 */ 17 function formatScheduledHertzHelper([hertz], { start }) { 18 return formatScheduledHertz(hertz, start || 'MHz'); 19 } 20 21 export default Helper.helper(formatScheduledHertzHelper);