mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 09:12:44 +03:00
ensure the backing store write reports at least a minimal amount of time
This commit is contained in:
parent
ca74e0060d
commit
ba5ade87b2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user