Searched refs:perc (Results 1 – 8 of 8) sorted by relevance
| /freebsd-14-stable/contrib/bsddialog/examples_utility/ |
| HD | mixedgauge.sh | 12 perc=0 13 while [ $perc -le 100 ] 16 --mixedgauge "Example..." 20 45 $perc \ 28 "Label X" $perc 30 perc=`expr $perc + 20`
|
| /freebsd-14-stable/contrib/bsddialog/lib/ |
| HD | barbox.c | 53 draw_bar(WINDOW *win, int y, int x, int barlen, int perc, bool withlabel, in draw_bar() argument 59 blue_x = perc > 0 ? (perc * barlen) / 100 : -1; in draw_bar() 72 sprintf(labelstr, "%3d%%", perc); in draw_bar() 131 int cols, unsigned int perc, int fd, const char *sep) in bsddialog_gauge() argument 167 draw_bar(bar, 1, 1, w-8, perc, false, -1 /*unused*/); in bsddialog_gauge() 183 fscanf(input, "%d", &perc); in bsddialog_gauge() 184 perc = perc > 100 ? 100 : perc; in bsddialog_gauge() 357 int perc, retval, *minipercs; in bsddialog_progressview() local 411 perc = pvconf->callback(&minibar[i]); in bsddialog_progressview() 417 } else if (minibar[i].status == BSDDIALOG_MG_FAILED || perc < 0) { in bsddialog_progressview() [all …]
|
| HD | bsddialog.h | 196 int cols, unsigned int perc, int fd, const char *sep);
|
| /freebsd-14-stable/contrib/dialog/samples/ |
| HD | dialog.py | 252 def gauge_start(self, perc=0, text='', height=8, width=54, title=''): argument 265 '--gauge "%s" %d %d %d' % (text, height, width, perc) 271 def gauge_iterate(self, perc, text=''): argument 278 text = 'XXX\n%d\n%s\nXXX\n' % (perc, text) 280 text = '%d\n' % perc
|
| /freebsd-14-stable/usr.sbin/bsdinstall/distfetch/ |
| HD | distfetch.c | 116 int perc; in fetch_files() local 217 perc = (fsize * 100) / ustat.size; in fetch_files() 218 miniperc[i] = perc; in fetch_files()
|
| /freebsd-14-stable/contrib/bsddialog/ |
| HD | bsddialog.c | 1020 unsigned int perc; in gauge_builder() local 1022 perc = 0; in gauge_builder() 1024 perc = (u_int)strtoul(argv[0], NULL, 10); in gauge_builder() 1025 perc = perc > 100 ? 100 : perc; in gauge_builder() 1030 output = bsddialog_gauge(conf, text, rows, cols, perc, STDIN_FILENO, in gauge_builder()
|
| /freebsd-14-stable/sys/contrib/openzfs/cmd/ |
| HD | arc_summary | 375 perc = 100 * v1/v2 379 result = '{0:0.1f} %'.format(perc)
|
| /freebsd-14-stable/sbin/camcontrol/ |
| HD | camcontrol.c | 6700 u_int val, perc; in sanitize_wait_ata() local 6770 perc = 10000 * val; in sanitize_wait_ata() 6773 (perc / (0x10000 * 100)), in sanitize_wait_ata() 6774 ((perc / 0x10000) % 100), in sanitize_wait_ata() 6790 u_int val, perc; in sanitize_wait_scsi() local 6847 perc = 10000 * val; in sanitize_wait_scsi() 6850 (perc / (0x10000 * 100)), in sanitize_wait_scsi() 6851 ((perc / 0x10000) % 100), in sanitize_wait_scsi()
|