typo: Check "available" and not "used"

This commit is contained in:
Girish Ramakrishnan
2016-07-26 17:10:22 -07:00
parent 159fecc9ce
commit 947edfec72
+1 -1
View File
@@ -693,7 +693,7 @@ function checkDiskSpace(callback) {
var oos = entries.some(function (entry) {
return (entry.mount === paths.DATA_DIR && entry.capacity >= 0.90) ||
(entry.mount === '/' && entry.used <= (1.25 * 1024 * 1024)); // 1.5G
(entry.mount === '/' && entry.available <= (1.25 * 1024 * 1024)); // 1.5G
});
debug('Disk space checked. ok: %s', !oos);