Make 1gb warning a little less than 1gb (#7368)

When you have '1gb' RAM, this might be a little less than 1,000,000.
Let's not warn unless it's well under 1gb.
This commit is contained in:
James Haggerty 2019-04-12 09:44:29 +10:00 committed by Jeff Atwood
parent 24ef4f7b2b
commit dcec256b9d
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class AdminDashboardData
end
def ram_check
I18n.t('dashboard.memory_warning') if MemInfo.new.mem_total && MemInfo.new.mem_total < 1_000_000
I18n.t('dashboard.memory_warning') if MemInfo.new.mem_total && MemInfo.new.mem_total < 950_000
end
def google_oauth2_config_check