html.c: Correct ordering for reformat time

Fix a minor bug where we'd likely never end up reformatting.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-06-05 22:59:24 +01:00
parent 27ee92c872
commit 64ee8e1b00

View File

@ -1564,7 +1564,7 @@ static void html_reformat(struct content *c, int width, int height)
/* calculate next reflow time at three times what it took to reflow */
nsu_getmonotonic_ms(&ms_after);
ms_interval = (ms_before - ms_after) * 3;
ms_interval = (ms_after - ms_before) * 3;
if (ms_interval < (nsoption_uint(min_reflow_period) * 10)) {
ms_interval = nsoption_uint(min_reflow_period) * 10;
}