Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 76) sorted by relevance

1234

/dragonfly/games/rogue/
H A Dobject.c383 short percent; in gr_what_is() local
388 if (percent <= 30) { in gr_what_is()
409 short percent; in gr_scroll() local
415 if (percent <= 5) { in gr_scroll()
447 short percent; in gr_potion() local
453 if (percent <= 5) { in gr_potion()
487 short percent; in gr_weapon() local
507 if (percent <= 16) { in gr_weapon()
513 if (percent <= 32) { in gr_weapon()
551 short percent; in gr_armor() local
[all …]
/dragonfly/games/trek/
H A Dwarp.c77 int percent; in warp() local
96 if (percent >= 85) { in warp()
99 percent); in warp()
110 if (percent >= 85) { in warp()
112 percent); in warp()
148 percent = ranf(100); in warp()
149 if (percent < 70) { in warp()
151 if (percent < 35 || !Game.snap) { in warp()
159 percent = Event[i].evcode; in warp()
160 if (percent == E_FIXDV || percent == E_LRTB) in warp()
[all …]
H A Dimpulse.c48 int percent; in impulse() local
61 percent = 100 * power / Ship.energy + 0.5; in impulse()
62 if (percent >= 85) { in impulse()
65 percent); in impulse()
71 percent = 100 * time / Now.time + 0.5; in impulse()
72 if (percent >= 85) { in impulse()
74 percent); in impulse()
H A Drest.c56 int percent; in rest() local
62 percent = 100 * t / Now.time + 0.5; in rest()
63 if (percent >= 70) { in rest()
65 percent); in rest()
H A Dsrscan.c65 int percent; in srscan() local
133 percent = 100.0 * Ship.shield / Param.shield; in srscan()
134 printf("shields %s, %d%%", s, percent); in srscan()
/dragonfly/usr.bin/backlight/
H A Dbacklight.c94 long percent = -1; in main() local
141 percent = strtonum(argv[0], 0, 100, &percent_error); in main()
170 if (percent == -1) in main()
172 props.brightness = percent; in main()
178 if (percent == 0) in main()
183 percent = percent == -1 ? 10 : percent; in main()
184 percent = action == BACKLIGHT_INCR ? percent : -percent; in main()
185 props.brightness += percent; in main()
/dragonfly/games/fortune/fortune/
H A Dfortune.c74 int percent; member
355 int percent; in form_file_list() local
393 percent = 0; in form_file_list()
395 percent = percent * 10 + *sp - '0'; in form_file_list()
536 fp->percent = percent; in add_file()
669 scene->percent = obscene->percent = NO_PROB; in all_forts()
886 percent = 0; in init_prob()
894 percent += fp->percent; in init_prob()
904 percent); in init_prob()
911 percent = 100 - percent; in init_prob()
[all …]
/dragonfly/contrib/dialog/
H A Dguage.c43 int percent; member
206 obj->percent = atoi(buf); in handle_input()
224 obj->percent = atoi(buf); in handle_input()
289 obj->percent = percent; in dlg_update_gauge()
303 int percent) in dlg_reallocate_gauge() argument
352 obj->percent = percent; in dlg_reallocate_gauge()
371 int percent) in dlg_allocate_gauge() argument
406 int percent) in dialog_gauge() argument
418 DLG_TRACE2N("percent", percent); in dialog_gauge()
421 dlg_update_gauge(obj, percent); in dialog_gauge()
[all …]
H A Dmixedgauge.c119 float percent; in myprint_status() local
161 if (sscanf(status, "%f%%", &percent) != 1) in myprint_status()
162 percent = 0.0; in myprint_status()
163 xxx = (int) ((cells * (percent + 0.5)) / 100.0); in myprint_status()
216 dlg_update_mixedgauge(DIALOG_MIXEDGAUGE * dlg, int percent) in dlg_update_mixedgauge() argument
232 (void) wprintw(dlg->dialog, "%3d%%", percent); in dlg_update_mixedgauge()
239 x = (percent * (dlg->width - 2 * (3 + MARGIN))) / 100; in dlg_update_mixedgauge()
386 int percent, in dialog_mixedgauge() argument
398 DLG_TRACE2N("percent", percent); in dialog_mixedgauge()
405 dlg_update_mixedgauge(&dlg, percent); in dialog_mixedgauge()
H A Darrows.c180 int percent; in dlg_draw_scrollbar() local
183 percent = (!total_data in dlg_draw_scrollbar()
188 if (percent < 0) in dlg_draw_scrollbar()
189 percent = 0; in dlg_draw_scrollbar()
190 else if (percent > 100) in dlg_draw_scrollbar()
191 percent = 100; in dlg_draw_scrollbar()
194 (void) sprintf(buffer, "%d%%", percent); in dlg_draw_scrollbar()
/dragonfly/sbin/hammer/
H A Dcmd_info.c42 static double percent(int64_t value, int64_t total);
179 percent(usedbigblocks, fip->bigblocks), in show_info()
181 percent(fip->rsvbigblocks, fip->bigblocks), in show_info()
183 percent(fip->freebigblocks - fip->rsvbigblocks, fip->bigblocks)); in show_info()
202 percent(usedbytes, totalbytes)); in show_info()
207 percent(rsvbytes, totalbytes)); in show_info()
212 percent(freebytes, totalbytes)); in show_info()
239 percent(int64_t value, int64_t total) in percent() function
/dragonfly/contrib/lvm2/dist/daemons/dmeventd/plugins/snapshot/
H A Ddmeventd_snapshot.c115 int percent, *percent_warning = (int*)private; in process_event() local
141 percent = 100 * stat.used / stat.max; in process_event()
142 if (percent >= *percent_warning) { in process_event()
143 syslog(LOG_WARNING, "Snapshot %s is now %i%% full.\n", device, percent); in process_event()
145 *percent_warning = (percent / WARNING_STEP) * WARNING_STEP + WARNING_STEP; in process_event()
/dragonfly/contrib/gdb-7/gdb/common/
H A Dbuffer.c92 int percent = 0; in buffer_xml_printf() local
99 if (percent) in buffer_xml_printf()
182 percent = 0; in buffer_xml_printf()
185 percent = 1; in buffer_xml_printf()
/dragonfly/crypto/openssh/
H A Dprogressmeter.c125 int percent; in refresh_progress_meter() local
178 percent = 100; in refresh_progress_meter()
180 percent = ((float)cur_pos / end_pos) * 100; in refresh_progress_meter()
182 " %3d%% ", percent); in refresh_progress_meter()
/dragonfly/contrib/lvm2/dist/lib/activate/
H A Ddev_manager.c350 struct logical_volume *lv, float *percent, in _percent_run() argument
369 *percent = -1; in _percent_run()
430 *percent = (float) total_numerator *100 / total_denominator; in _percent_run()
433 *percent = 100; in _percent_run()
440 log_debug("LV percent: %f", *percent); in _percent_run()
450 struct logical_volume *lv, float *percent, in _percent() argument
458 target_type, wait, lv, percent, in _percent()
519 float *percent, percent_range_t *percent_range) in dev_manager_snapshot_percent() argument
537 if (!(_percent(dm, name, dlid, "snapshot", 0, NULL, percent, in dev_manager_snapshot_percent()
551 float *percent, percent_range_t *percent_range, in dev_manager_mirror_percent() argument
[all …]
H A Ddev_manager.h51 float *percent,
55 float *percent, percent_range_t *percent_range,
H A Dactivate.h86 int lv_snapshot_percent(const struct logical_volume *lv, float *percent,
89 int wait, float *percent, percent_range_t *percent_range,
/dragonfly/sbin/dump/
H A Doptr.c182 double percent; in timeest() local
189 percent = (blockswritten * 100.0) / tapesize; in timeest()
194 disk, passno, percent, hours, mins); in timeest()
199 msg("%3.2f%% done, finished in %d:%02d\n", percent, hours, in timeest()
/dragonfly/stand/lib/
H A Dprintf.c182 const char *p, *percent; in kvprintf() local
208 percent = fmt - 1; in kvprintf()
427 while (percent < fmt) in kvprintf()
428 PCHAR(*percent++); in kvprintf()
/dragonfly/share/examples/pf/
H A Dqueue49 # departments get the thirty percent and twenty percent of bandwidth
/dragonfly/libexec/rtld-elf/
H A Drtld_printf.c126 const char *p, *percent, *q; in kvprintf() local
152 percent = fmt - 1; in kvprintf()
416 while (percent < fmt) in kvprintf()
417 PCHAR(*percent++); in kvprintf()
/dragonfly/usr.bin/printf/
H A Dprintf.c462 escape(char *fmt, int percent, size_t *len) in escape() argument
489 if (!percent) { in escape()
514 c = (!percent && *fmt == '0') ? 4 : 3; in escape()
521 if (percent && value == '%') { in escape()
/dragonfly/contrib/lvm2/dist/include/
H A Dactivate.h86 int lv_snapshot_percent(const struct logical_volume *lv, float *percent,
89 int wait, float *percent, percent_range_t *percent_range,
/dragonfly/usr.sbin/burncd/
H A Dburncd.c173 int error, blank, percent; in main() local
187 error = ioctl(fd, CDRIOCGETPROGRESS, &percent); in main()
188 if (percent > 0 && !quiet) in main()
192 "eras" : "blank", percent); in main()
193 if (error || percent == 100) in main()
/dragonfly/contrib/ncurses/progs/
H A Ddump_entry.c776 bool percent = FALSE; in fmt_complex() local
782 percent = FALSE; in fmt_complex()
786 percent = FALSE; in fmt_complex()
790 percent = TRUE; in fmt_complex()
795 if (percent) { in fmt_complex()
796 percent = FALSE; in fmt_complex()
830 if (percent) { in fmt_complex()
831 percent = FALSE; in fmt_complex()
852 if (percent && params && !leading_DYN(&tmpbuf, "%")) { in fmt_complex()
858 percent = FALSE; in fmt_complex()
[all …]

1234