mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
metrics: increase type of us_schedule to uint64_t
This commit is contained in:
parent
3ff6a9d462
commit
e4d381eadd
3 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ typedef struct lws_metric_policy {
|
|||
const char *report;
|
||||
|
||||
/**< the metrics policy name in the policy, used to bind to it */
|
||||
uint32_t us_schedule;
|
||||
uint64_t us_schedule;
|
||||
/**< us interval between lws_system metrics api reports */
|
||||
|
||||
uint32_t us_decay_unit;
|
||||
|
|
|
@ -564,7 +564,7 @@ lws_ss_policy_parser_cb(struct lejp_ctx *ctx, char reason)
|
|||
goto string2;
|
||||
|
||||
case LSSPPT_METRICS_US_SCHEDULE:
|
||||
a->curr[LTY_METRICS].m->us_schedule = (uint32_t)atol(ctx->buf);
|
||||
a->curr[LTY_METRICS].m->us_schedule = (uint64_t)atol(ctx->buf);
|
||||
break;
|
||||
|
||||
case LSSPPT_METRICS_US_HALFLIFE:
|
||||
|
|
|
@ -184,7 +184,7 @@ lws_metrics_periodic_cb(lws_sorted_usec_list_t *sul)
|
|||
if (dmp->policy->us_schedule)
|
||||
lws_sul_schedule(ctx, 0, &dmp->sul,
|
||||
lws_metrics_periodic_cb,
|
||||
dmp->policy->us_schedule);
|
||||
(lws_usec_t)dmp->policy->us_schedule);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -213,7 +213,7 @@ lws_metrics_policy_dyn_create(struct lws_context *ctx,
|
|||
if (po->us_schedule)
|
||||
lws_sul_schedule(ctx, 0, &dmet->sul,
|
||||
lws_metrics_periodic_cb,
|
||||
po->us_schedule);
|
||||
(lws_usec_t)po->us_schedule);
|
||||
|
||||
return dmet;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue