D | seek.c | 100 static void sps_emit(struct seeki *sip) in sps_emit() argument 103 struct sps_bkt *sps = &sip->sps; in sps_emit() 115 fprintf(sip->sps_fp, "%15.9lf %.2lf\n", sps->t_start, s_p_s); in sps_emit() 121 static void sps_add(struct seeki *sip, double t) in sps_add() argument 123 if (sip->sps_fp) { in sps_add() 124 struct sps_bkt *sps = &sip->sps; in sps_add() 127 sps_emit(sip); in sps_add() 184 long long seek_dist(struct seeki *sip, struct io *iop) in seek_dist() argument 190 dist = start - sip->last_end; in seek_dist() 193 if (((sip->last_start <= start) && (start <= sip->last_end)) || in seek_dist() [all …]
|