diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-09-23 19:45:00 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-09-24 18:42:04 +0200 |
commit | b23d030925e6313d644693a346ba48cbf0ecda95 (patch) | |
tree | 6195a4a393fecea17a2cb68cb74b23c67418502e /settings/personal.php | |
parent | e0d013b25eb54091499d2c11c7865216ebcdb056 (diff) | |
download | nextcloud-server-b23d030925e6313d644693a346ba48cbf0ecda95.tar.gz nextcloud-server-b23d030925e6313d644693a346ba48cbf0ecda95.zip |
settings/personal: calculate the relative usage with 2 decimals
Normally a browser window will be large enough that the bar is wider
than 100px so we can use decimals to display the real usage more
closely.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/personal.php b/settings/personal.php index aea997aff22..05dbda473ac 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -17,7 +17,7 @@ OC_App::setActiveNavigationEntry( "personal" ); $used=OC_Filesystem::filesize('/'); $free=OC_Filesystem::free_space(); $total=$free+$used; -$relative=round(($used/$total)*100); +$relative=round(($used/$total)*10000)/100; $lang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', 'en' ); $languageCodes=OC_L10N::findAvailableLanguages(); |