mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
do not pull hotlinked images when max_image_size_kb == 0
This commit is contained in:
@@ -8,7 +8,7 @@ class MemInfo
|
||||
system = `uname`.strip
|
||||
if system == "Darwin"
|
||||
s = `sysctl -n hw.memsize`.strip
|
||||
s.to_i / 1024
|
||||
s.to_i / 1.kilobyte
|
||||
else
|
||||
s = `grep MemTotal /proc/meminfo`
|
||||
/(\d+)/.match(s)[0].try(:to_i)
|
||||
|
Reference in New Issue
Block a user