Skip to content
Snippets Groups Projects
Commit b23d0309 authored by Florian Pritz's avatar Florian Pritz
Browse files

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: default avatarFlorian Pritz <bluewind@xinu.at>
parent e0d013b2
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment