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>
This commit is contained in:
Florian Pritz 2011-09-23 19:45:00 +02:00
parent e0d013b25e
commit b23d030925
1 changed files with 1 additions and 1 deletions

View File

@ -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();