<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 27, 2017 at 1:26 PM, Grazvydas Ignotas <span dir="ltr"><<a href="mailto:notasas@gmail.com" target="_blank">notasas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On Thu, Apr 27, 2017 at 4:15 AM, Timothy Arceri <span dir="ltr"><<a href="mailto:tarceri@itsqueeze.com" target="_blank">tarceri@itsqueeze.com</a>></span> wrote:</span><br><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c<br>
index 9fd7b96..2764017 100644<br>
--- a/src/util/disk_cache.c<br>
+++ b/src/util/disk_cache.c<br>
@@ -525,21 +525,21 @@ unlink_lru_file_from_directory<wbr>(const char *path)<br>
return 0;<br>
<br>
if (stat(filename, &sb) == -1) {<br>
free (filename);<br>
return 0;<br>
}<br>
<br>
unlink(filename);<br>
free (filename);<br>
<br>
- return sb.st_size;<br>
+ return sb.st_blocks * 512;<br></blockquote><div><br></div></span><div>I think other block sizes than 512 are possible, you can use sb.st_blocks * sb.st_blksize to take care of that.<br></div></div></div></div></blockquote><div><br></div><div>Ugh ignore that, the manpage says it's always 512-byte units.<br></div><div> <br></div></div><br></div></div>