Lines Matching defs:sps
39 struct sps_bkt sps;
103 struct sps_bkt *sps = &sip->sps;
104 double delta = sps->t_last - sps->t_start;
106 if ((sps->nseeks == 1) || (delta < DBL_EPSILON)) {
107 s_p_s = (double)(sps->nseeks);
108 tstamp = sps->t_start;
111 s_p_s = (double)(sps->nseeks) / delta;
112 tstamp = sps->t_start + (delta / 2);
115 fprintf(sip->sps_fp, "%15.9lf %.2lf\n", sps->t_start, s_p_s);
117 sps->t_start = 0;
118 sps->nseeks = 0;
124 struct sps_bkt *sps = &sip->sps;
126 if (sps->nseeks != 0 && ((t - sps->t_start) >= 1.0))
129 sps->t_last = t;
130 if (sps->nseeks == 0) {
131 sps->t_start = t;
132 sps->nseeks = 1;
134 sps->nseeks++;
223 memset(&sip->sps, 0, sizeof(sip->sps));
241 if (sip->sps_fp && sip->sps.nseeks != 0)