render: presentation: clean up frame interval count calculation

This commit is contained in:
Daniel Eklöf 2020-01-01 11:19:13 +01:00
parent b8960f930d
commit 9ba702ce00
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -100,7 +100,7 @@ presented(void *data,
unsigned frame_count = 0;
if (tll_length(term->window->on_outputs) > 0) {
const struct monitor *mon = tll_front(term->window->on_outputs);
frame_count = (double)(diff.tv_sec * 1000000 + diff.tv_usec) / (1. / mon->refresh * 1000000.);
frame_count = (diff.tv_sec * 1000000. + diff.tv_usec) / (1000000. / mon->refresh);
}
presentation_statistics.total++;