mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-27 06:19:42 +03:00
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:
parent
27ee92c872
commit
64ee8e1b00
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user