netsurf: branch master updated. release/3.2-506-gba5ade8
by NetSurf Browser Project
Gitweb links:
...log http://git.netsurf-browser.org/netsurf.git/shortlog/ba5ade87b2fe5a3c4a415...
...commit http://git.netsurf-browser.org/netsurf.git/commit/ba5ade87b2fe5a3c4a4153f...
...tree http://git.netsurf-browser.org/netsurf.git/tree/ba5ade87b2fe5a3c4a4153f0d...
The branch, master has been updated
via ba5ade87b2fe5a3c4a4153f0d5a8f73eb04048aa (commit)
from ca74e0060d4baea2f22714c36f17a2017b683631 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff http://git.netsurf-browser.org/netsurf.git/commit/?id=ba5ade87b2fe5a3c4a4...
commit ba5ade87b2fe5a3c4a4153f0d5a8f73eb04048aa
Author: Vincent Sanders <vince(a)kyllikki.org>
Commit: Vincent Sanders <vince(a)kyllikki.org>
ensure the backing store write reports at least a minimal amount of time
diff --git a/content/llcache.c b/content/llcache.c
index fb3d716..e12273e 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -2368,6 +2368,13 @@ write_backing_store(struct llcache_object *object,
*/
*elapsed = endms - startms;
+ /* ensure the writeout is reported to have taken at least the
+ * minimal amount of time
+ */
+ if (*elapsed == 0) {
+ *elapsed = 1;
+ }
+
return NSERROR_OK;
}
-----------------------------------------------------------------------
Summary of changes:
content/llcache.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/content/llcache.c b/content/llcache.c
index fb3d716..e12273e 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -2368,6 +2368,13 @@ write_backing_store(struct llcache_object *object,
*/
*elapsed = endms - startms;
+ /* ensure the writeout is reported to have taken at least the
+ * minimal amount of time
+ */
+ if (*elapsed == 0) {
+ *elapsed = 1;
+ }
+
return NSERROR_OK;
}
--
NetSurf Browser
8 years, 6 months