9 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Jesse Chan
efdd620192 dependencies: bump (major)
TODO: drop the "const argv = argvObj as Record<string, any>;" hack

Refs: yargs/yargs#2175
2022-05-07 16:41:10 -07:00
Jesse Chan
1ce8ba49d5 server: DiskUsage: make errors non-fatal
Bug: #229
2021-03-08 15:40:25 +08:00
Jesse Chan
287625782f server: DiskUsage: increase timeout to 5s 2021-03-08 15:38:48 +08:00
Jesse Chan
031a164b34 server: ensure all promises are rejected with Error 2021-03-02 22:55:56 +08:00
Jesse Chan
b4c7dc020c server: DiskUsage: ensure disk.target is string before evaluating its length 2020-12-11 02:59:27 +08:00
Jesse Chan
b6ebee6351 DiskUsage: ignore mountpoints with super long paths
So things like /var/snap/microk8s/common/run/containerd/ won't
spam and jeopardize the disk usage feature.

Usually they are very unlikely to be useful.
2020-12-01 18:47:09 +08:00
Jesse Chan
017b9d159d server: replace explicit binds with arrow functions 2020-11-02 19:32:33 +08:00
Jesse Chan
a9180d7cfc server: move DiskUsage class out of services
It is not user-dependent. Thus not a service.
2020-10-17 13:44:06 +08:00