<div dir="ltr">Beware of documented disksup behaviour.<div><br></div><div style>There is a file cleaner in flussonic which asks disksup disk usage. If it is bigger than threshold, oldest file is deleted.</div><div style><br>
</div><div style>But disksup doesn't refresh its cache! So flussonic has deleted all files on disk.</div><div style><br></div><div style>I have two options:</div><div style><br></div><div style>1) send timeout message to disksup before asking disk usage</div>
<div style><br></div><div style>This option is very easy, but I don't understand why disksup is so complicated. Perhaps I don't know some problems under it?</div><div style><br></div><div style>2) don't use disksup, launch os:cmd("df -h") and parse it.</div>
<div style><br></div><div style>I need to launch it about 100 times per hour, so this expensive fork/exec is not very expensive.</div><div style><br></div><div style><br></div><div style>Which way is better?</div><div style>
<br></div><div style><br></div></div>