You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incomplete size in list and details view (PR 1209) #1381
In list view, uploads view and details view, the size of the file is shown without decimals. In server side is shown with at least one decimal when the size is greater than 1MB. For example, these two files:
Code reference for the change that has been made which caused this: 607fb6f#diff-36e882c1d5231f769f0209395ecf63c4R58
the two lines basically. So the question is does it stand correct to have two decimals for peta byte and up? If so I can simply change the MB value in the digits array to 1 instead of zero and we are all set :)
@jesmrec yes - for mega byte. To make sure it is behaving the same way for peta bytes and up we need further info from @PVince81 and @jancborchardt - In case we needs to check it for peta bytes and up 😁
Activity
davivel commentedon Dec 23, 2015
@AndyScherzinger , that's a gift for you ;)
AndyScherzinger commentedon Dec 24, 2015
Thanks :) Looping in @jancborchardt since this is contrary to what has been specified for mobile!
AndyScherzinger commentedon Dec 24, 2015
I can fix or let's say change this but I would like to have Jan's Feedback first :)
jancborchardt commentedon Dec 28, 2015
Sorry for any confusion! :) Should be like on the server.
AndyScherzinger commentedon Dec 28, 2015
Do we have a specification for that or the server side code snippet to port, just to make sure that it will behave the exact same way.
AndyScherzinger commentedon Dec 28, 2015
Code reference for the change that has been made which caused this: 607fb6f#diff-36e882c1d5231f769f0209395ecf63c4R58
the two lines basically. So the question is does it stand correct to have two decimals for peta byte and up? If so I can simply change the MB value in the digits array to 1 instead of zero and we are all set :)
Would that be fine with you @davivel and @jancborchardt ?
fix for #1381
AndyScherzinger commentedon Dec 28, 2015
The fix has been pushed to the
material_buttonsbranch 👍jancborchardt commentedon Dec 28, 2015
@PVince81 do we have any spec here, or where is the relevant code of the server?
jesmrec commentedon Dec 29, 2015
Fixed!
AndyScherzinger commentedon Dec 29, 2015
@jesmrec yes - for mega byte. To make sure it is behaving the same way for peta bytes and up we need further info from @PVince81 and @jancborchardt - In case we needs to check it for peta bytes and up 😁
AndyScherzinger commentedon Dec 29, 2015
All changes up to now have been merged to master and thus I label the issue for release 1.9.1 :)