summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-06-05 22:59:24 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-06-05 22:59:49 +0100
commit64ee8e1b00438ea87ba10ea6dd34e6d3000c28ce (patch)
tree441a82eb7d695d14a7fbcb3a84d1a9a057fb19a0
parent27ee92c8721f982b79432689dbcb5439bb4fadc2 (diff)
downloadnetsurf-64ee8e1b00438ea87ba10ea6dd34e6d3000c28ce.tar.gz
netsurf-64ee8e1b00438ea87ba10ea6dd34e6d3000c28ce.tar.bz2
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>
-rw-r--r--content/handlers/html/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index af1040b40..ba80ad12e 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -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;
}