()
| 118 | } |
| 119 | |
| 120 | function checkDisk(): CheckResult { |
| 121 | const freeMb = getFreeDiskMb("."); |
| 122 | if (freeMb === null) { |
| 123 | return { ok: true, detail: "Unable to check" }; |
| 124 | } |
| 125 | const freeGb = (freeMb / 1024).toFixed(1); |
| 126 | if (freeMb < 1024) { |
| 127 | return { |
| 128 | ok: false, |
| 129 | detail: `${freeGb} GB free`, |
| 130 | hint: "Low disk space — renders produce large temp files.", |
| 131 | }; |
| 132 | } |
| 133 | return { ok: true, detail: `${freeGb} GB free` }; |
| 134 | } |
| 135 | |
| 136 | function checkEnvironment(): CheckResult { |
| 137 | const sys = getSystemMeta(); |
nothing calls this directly
no test coverage detected