Module API for LatencyAddSample

This commit is contained in:
Oran Agra
2019-10-24 14:24:55 +03:00
parent 673c9d7029
commit e3b1d6d3ad
4 changed files with 13 additions and 2 deletions

View File

@ -95,7 +95,7 @@ void latencyMonitorInit(void) {
* This function is usually called via latencyAddSampleIfNeeded(), that
* is a macro that only adds the sample if the latency is higher than
* server.latency_monitor_threshold. */
void latencyAddSample(char *event, mstime_t latency) {
void latencyAddSample(const char *event, mstime_t latency) {
struct latencyTimeSeries *ts = dictFetchValue(server.latency_events,event);
time_t now = time(NULL);
int prev;