From b23d030925e6313d644693a346ba48cbf0ecda95 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 23 Sep 2011 19:45:00 +0200 Subject: [PATCH] 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 --- settings/personal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/personal.php b/settings/personal.php index aea997aff2..05dbda473a 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();