# HG changeset patch # User Marcin Kuzminski # Date 2016-12-12 19:22:45 # Node ID 57b5baf23cab76faef5042c2fb5cd4091d4e8783 # Parent 96294b6a57dbc39354850e989d7b119ccd764488 system-info: fixed reporting of inodes. diff --git a/rhodecode/lib/system_info.py b/rhodecode/lib/system_info.py --- a/rhodecode/lib/system_info.py +++ b/rhodecode/lib/system_info.py @@ -256,9 +256,8 @@ def storage_inodes(): try: i_stat = os.statvfs(path) - - value['used'] = i_stat.f_ffree - value['free'] = i_stat.f_favail + value['free'] = i_stat.f_ffree + value['used'] = i_stat.f_files-i_stat.f_favail value['total'] = i_stat.f_files value['percent'] = percentage(value['used'], value['total']) except Exception as e: