From: Florian Pritz Date: Fri, 23 Sep 2011 17:45:00 +0000 (+0200) Subject: settings/personal: calculate the relative usage with 2 decimals X-Git-Tag: v3.0~161^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b23d030925e6313d644693a346ba48cbf0ecda95;p=nextcloud-server.git 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 --- 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();