mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 19:23:53 +08:00
b73a133bb5
It's possibly that when trying to upload a backup the free space check will output scientific notation resulting in an incorrect "There is not enough space on disk" error. The free space check uses the Linux `print` command which could return a number using scientific notation like `1.60459e+10` and when ruby converts it to an integer it will have the value of `1` instead of `16045879296`. Which means even though you have 16GB of free space you could not upload a 1GB backup file. This commit uses the `printf` command instead which allows you to specify that you do not want scientific notation. I'm not sure why this hasn't been an issue before, but I was experiencing it locally in development. |
||
---|---|---|
.. | ||
admin_controller.rb | ||
api_controller.rb | ||
backups_controller.rb | ||
badges_controller.rb | ||
color_schemes_controller.rb | ||
dashboard_controller.rb | ||
email_controller.rb | ||
email_styles_controller.rb | ||
email_templates_controller.rb | ||
embeddable_hosts_controller.rb | ||
embedding_controller.rb | ||
emojis_controller.rb | ||
groups_controller.rb | ||
impersonate_controller.rb | ||
permalinks_controller.rb | ||
plugins_controller.rb | ||
reports_controller.rb | ||
robots_txt_controller.rb | ||
screened_emails_controller.rb | ||
screened_ip_addresses_controller.rb | ||
screened_urls_controller.rb | ||
search_logs_controller.rb | ||
site_settings_controller.rb | ||
site_texts_controller.rb | ||
staff_action_logs_controller.rb | ||
themes_controller.rb | ||
user_fields_controller.rb | ||
users_controller.rb | ||
versions_controller.rb | ||
watched_words_controller.rb | ||
web_hooks_controller.rb |