!7 cmodule EstimateDiskDoom > DynPrintLogAndEnabled { transient new DoomEstimator estimator; start { estimator.minValue = 3.0; // 3 percent free space doEveryAndNow(60.0, r measure); } void measure enter { double value = 100-diskSpacePercentage_oshi(); print("Free space: " + formatDouble(value, 2) + " %"); estimator.consumeValue(value); if (estimator.doomDate == null) ret with print("No doom!"); print("Doom date (" + formatDouble(estimator.minValue, 0) + "%): " + iround(toMinutes(estimator.doomDate-sysNow())) + " minutes from now"); } }