| 275 | } |
| 276 | |
| 277 | const char *md_timeslice_format(const md_timeslice_t *ts, apr_pool_t *p) { |
| 278 | if (ts->norm > 0) { |
| 279 | int percent = (int)(((long)apr_time_sec(ts->len)) * 100L |
| 280 | / ((long)apr_time_sec(ts->norm))); |
| 281 | return apr_psprintf(p, "%d%%", percent); |
| 282 | } |
| 283 | return duration_format(p, ts->len); |
| 284 | } |
| 285 | |
| 286 | md_timeperiod_t md_timeperiod_slice_before_end(const md_timeperiod_t *period, |
| 287 | const md_timeslice_t *ts) |
no test coverage detected