Fix units of "projectile cache is too large" warning

Labeled MB, but is actually displaying KB.
This commit is contained in:
Henrik Lissner 2020-06-10 21:52:04 -04:00
parent adc4be8897
commit f7431aa7c9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -99,7 +99,7 @@ in."
(when-let (size (ignore-errors (doom-file-size file doom-cache-dir)))
(when (> size 1048576) ; larger than 1mb
(warn! "%s is too large (%.02fmb). This may cause freezes or odd startup delays"
file (/ size 1024))
file (/ size 1024 1024.0))
(explain! "Consider deleting it from your system (manually)"))))
(unless (executable-find "rg")