diff --git a/src/main.cpp b/src/main.cpp index 0b5b900e3..4ecc64b37 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -421,9 +421,9 @@ static void print_fps(steady_clock::time_point *t0, int *frames, const string &n double seconds = duration_cast>(t1 - *t0).count(); if (seconds >= 5.0) { double fps = *frames / seconds; - LOG(LOG_LEVEL_INFO) << "[" << name << "] " << frames << " frames in " << seconds << " seconds = " << BOLD(fps << " FPS\n"); + LOG(LOG_LEVEL_INFO) << "[" << name << "] " << *frames << " frames in " << seconds << " seconds = " << BOLD(fps << " FPS\n"); *t0 = t1; - frames = 0; + *frames = 0; } }