Searched refs:pct (Results 1 - 15 of 15) sorted by relevance

/freebsd-10-stable/contrib/top/
H A Dm-template113 #define weighted_cpu(pct, pp) ((pp)->p_time == 0 ? 0.0 : \
114 ((pct) / (1.0 - exp((pp)->p_time * logcpu))))
/freebsd-10-stable/lib/libdpv/
H A Ddpv.c125 int pct; local
555 pct = 0;
562 pct = 0 - increment;
604 pct += increment;
609 pct = action(curfile, output_out);
612 keep_going = (pct < 100);
633 )) || pct == 100
636 overall = (100 * nthfile - 100 + pct) /
638 if (((100 * nthfile - 100 + pct) * 10 /
642 dprompt_recreate(list_head, curfile, pct);
[all...]
H A Ddprompt.c81 struct dpv_file_node *curfile, int pct);
244 pct_lsize = (pbar_size - 4) / 2; /* -4 == printf("%-3s%%", pct) */
378 struct dpv_file_node *curfile, int pct)
420 if (pbar_size >= 0 && pct >= 0 && curfile != NULL &&
423 pct, pct_rsize, "");
426 pwidth = pct * pbar_size / 100;
428 if ((pct * pbar_size % 100) > 50)
498 if (fp == curfile && pct < 100) {
539 dstate = pct < 100 ?
675 struct dpv_file_node *curfile, int pct)
377 dprompt_add_files(struct dpv_file_node *file_list, struct dpv_file_node *curfile, int pct) argument
674 dprompt_recreate(struct dpv_file_node *file_list, struct dpv_file_node *curfile, int pct) argument
[all...]
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dtaskq.c236 int pct; local
239 pct = MIN(nthreads, 100);
240 pct = MAX(pct, 0);
242 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100;
/freebsd-10-stable/lib/libc/stdio/
H A Dxprintf.c265 __v2printf(FILE *fp, const char *fmt0, unsigned pct, va_list ap) argument
270 struct printf_info pia[pct + 10];
271 int argt[pct + 10];
272 union arg args[pct + 10];
576 __v3printf(FILE *fp, const char *fmt, int pct, va_list ap) argument
596 ret = __v2printf(&fake, fmt, pct, ap);
/freebsd-10-stable/usr.sbin/mptutil/
H A Dmpt_volume.c133 float pct; local
185 pct = (float)(total - remaining) * 100 / total;
186 printf(" resync: %.2f%% complete\n", pct);
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_iter.c370 char *pct = strchr(comma_separated, '%'); local
371 if (pct != NULL) {
376 if (pct == comma_separated)
380 *pct = '\0';
381 ssa.ssa_last = pct + 1;
/freebsd-10-stable/sys/dev/ct/
H A Dct_isa.c169 struct ct_isa_softc *pct = device_get_softc(dev); local
170 struct ct_softc *ct = &pct->sc_ct;
173 struct bshw_softc *bs = &pct->sc_bshw;
/freebsd-10-stable/sys/dev/ath/ath_rate/sample/
H A Dsample.c168 int rix, tt, pct; local
191 pct = sn->stats[size_bin][rix].ewma_pct;
194 pct = 95;
210 if (best_rate_pct > (pct + 50))
222 best_rate_pct = pct;
235 best_rate_pct = pct;
730 int pct; local
809 pct = ((nframes - nbad) * 1000) / nframes;
821 (pct * (100 - ssc->smoothing_rate))) / 100;
/freebsd-10-stable/contrib/llvm/tools/llvm-bcanalyzer/
H A Dllvm-bcanalyzer.cpp565 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; local
566 outs() << " Percent of file: " << format("%2.4f%%", pct) << "\n";
583 double pct = (Stats.NumAbbreviatedRecords * 100.0) / Stats.NumRecords; local
584 outs() << " Percent Abbrevs: " << format("%2.4f%%", pct) << "\n";
/freebsd-10-stable/sys/kern/
H A Dkern_racct.c981 uint64_t pct_estimate, pct; local
1005 pct = racct_getpcpu(p, pct_estimate);
1009 racct_add_cred_locked(p->p_ucred, RACCT_PCTCPU, pct);
1197 uint64_t pct, pct_estimate; local
1240 pct = racct_getpcpu(p, pct_estimate);
1242 racct_set_force_locked(p, RACCT_PCTCPU, pct);
H A Dvfs_cache.c362 int count, maxlength, used, pct; local
385 pct = (used * 100) / (n_nchash / 100);
395 error = SYSCTL_OUT(req, &pct, sizeof(pct));
/freebsd-10-stable/usr.bin/top/
H A Dmachine.c89 #define weighted_cpu(pct, pp) ((pp)->ki_swtime == 0 ? 0.0 : \
90 ((pct) / (1.0 - exp((pp)->ki_swtime * logcpu))))
811 double pct; local
851 pct = pctdouble(pp->ki_pctcpu);
1043 ps.wcpu ? 100.0 * weighted_cpu(pct, pp) : 100.0 * pct,
/freebsd-10-stable/contrib/nvi/common/
H A Dexf.c1030 char *bp, *estr, *p, *pct, *slash, *t, *wfname, buf[8192]; local
1112 pct = t;
1138 (void)snprintf(pct, blen - (pct - bp), "%d", maxnum + 1);
/freebsd-10-stable/usr.bin/vmstat/
H A Dvmstat.c168 static long pct(long, long);
937 pct(long top, long bot) function
947 #define PCT(top, bot) pct((long)(top), (long)(bot))
1074 percent(double pct, int *over) argument
1079 l = snprintf(buf, sizeof(buf), "%.0f", pct);

Completed in 384 milliseconds