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:
parent
e0d013b25e
commit
b23d030925
|
@ -17,7 +17,7 @@ OC_App::setActiveNavigationEntry( "personal" );
|
||||||
$used=OC_Filesystem::filesize('/');
|
$used=OC_Filesystem::filesize('/');
|
||||||
$free=OC_Filesystem::free_space();
|
$free=OC_Filesystem::free_space();
|
||||||
$total=$free+$used;
|
$total=$free+$used;
|
||||||
$relative=round(($used/$total)*100);
|
$relative=round(($used/$total)*10000)/100;
|
||||||
|
|
||||||
$lang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', 'en' );
|
$lang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', 'en' );
|
||||||
$languageCodes=OC_L10N::findAvailableLanguages();
|
$languageCodes=OC_L10N::findAvailableLanguages();
|
||||||
|
|
Loading…
Reference in New Issue