View Ticket
Not logged in
Ticket UUID: d457feb387741bcb1b7cebfb206f9b19f377140b
Title: Empty repository reports strange compression ratio
Status: Closed Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Works_As_Designed
Last Modified: 2011-09-13 15:03:29
Version Found In: 37f295c310
Description & Comments:
Steps to reproduce:
  1. Create a new, empty fossil repository
  2. Invoke fossil ui for the repository
  3. Navigate to the stats page

Expected behavior:

Compression ratio is 1:1 (1 artifact stored as full text) or perhaps blank.

Actual behavior:

Compression ratio is reported as 0:10, which doesn't make sense.


lrem added on 2011-09-13 15:03:29 UTC:
The ratio is always described as x:10, what makes it quite nicely readable. Then, if there are no artifacts, x is undefined. Displaying it as 0 is as good as 10 or whatever else, but looks nicer (suggests, that the value does not have much sense).