MCPcopy Create free account
hub / github.com/apache/httpd / md_timeslice_format

Function md_timeslice_format

modules/md/md_time.c:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277const 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
286md_timeperiod_t md_timeperiod_slice_before_end(const md_timeperiod_t *period,
287 const md_timeslice_t *ts)

Callers 2

merge_mds_with_confFunction · 0.85
md_to_jsonFunction · 0.85

Calls 1

duration_formatFunction · 0.85

Tested by

no test coverage detected