From 40d0467dbad7c70b2f6e3957b9ba99a8db6a7b2b Mon Sep 17 00:00:00 2001 From: NoiseByNorthwest Date: Sun, 11 Mar 2018 10:55:35 +0100 Subject: [PATCH] Fix live flat profile refresh rate --- src/spx_reporter_fp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spx_reporter_fp.c b/src/spx_reporter_fp.c index a9bb031..0b7cdea 100644 --- a/src/spx_reporter_fp.c +++ b/src/spx_reporter_fp.c @@ -114,7 +114,7 @@ static spx_profiler_reporter_cost_t fp_notify(spx_profiler_reporter_t * reporter return SPX_PROFILER_REPORTER_COST_LIGHT; } - size_t ts_ms = spx_resource_stats_wall_time() / 1000; + size_t ts_ms = spx_resource_stats_wall_time() / (1000 * 1000); if (ts_ms - fp_reporter->last_ts_ms < 70) { return SPX_PROFILER_REPORTER_COST_LIGHT; }