Document size on disk should be limited to two decimals

Bug #1394723 reported by Stefano Verzegnassi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Document Viewer App
Fix Released
Low
Stefano Verzegnassi

Bug Description

As in the attached screenshot, the "size on disk" of the document should be limited to up to two decimals.

Also, the size unit used to return this information is the octect (http://en.wikipedia.org/wiki/Octet_%28computing%29), which may be meaningless for a number of users.
The desired solution is to refer to the byte, using the following suffixes: byte, KiB, MiB, GiB.

DESIRED SOLUTION:
The output should be as follow:
 * 1,36 GiB (2 decimals)
 * 1,36 MiB (2 decimals)
 * 136 KiB (no decimals)
 * 136 bytes (no decimals)

DIFFICULTY: Low

Other informations:
 * The file to edit is src/app/qml/utils.js

Tags: bitesize

Related branches

Revision history for this message
Stefano Verzegnassi (verzegnassi-stefano) wrote :
description: updated
Changed in ubuntu-docviewer-app:
assignee: nobody → Stefano Verzegnassi (verzegnassi-stefano)
status: Triaged → In Progress
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-docviewer-app at revision 44, scheduled for release in ubuntu-docviewer-app, milestone 2014-10-30

Changed in ubuntu-docviewer-app:
status: In Progress → Fix Committed
Changed in ubuntu-docviewer-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.