Changeset 206

Show
Ignore:
Timestamp:
07/12/10 23:10:32 (2 months ago)
Author:
Guillaume Mazoyer <respawneral@…>
branch-nick:
gnome-split
revision id:
respawneral@gmail.com-20100712211032-b101y4j7z3b5i82e
Message:

Fix CD-R and DVD-R sizes.

Location:
src/org/gnome/split/core/utils
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/org/gnome/split/core/utils/SizeUnit.java

    r187 r206  
    5050     * One CD-ROM. 
    5151     */ 
    52     public static final double CDROM = 700 * MiB; 
     52    public static final double CDROM = 700 * 1000000; 
    5353 
    5454    /** 
    55      * One DVD-ROM 
     55     * One DVD-ROM. 
    5656     */ 
    57     public static final double DVDROM = 4.7 * GiB; 
     57    public static final double DVDROM = 4.7 * 1000000000; 
    5858 
     59    /** 
     60     * Get all the values using an array. 
     61     */ 
    5962    private static final double[] values = { 
    6063            KiB, MiB, GiB, CDROM, DVDROM 
  • src/org/gnome/split/core/utils/Utils.java

    r162 r206  
    3838        // just for a cosmetic purpose. It is the date on which Delphi's 
    3939        // TDatetime type is based. 
    40         GregorianCalendar base = new GregorianCalendar(1899, 12, 30); 
    41         GregorianCalendar time = new GregorianCalendar(); 
     40        final GregorianCalendar base = new GregorianCalendar(1899, 12, 30); 
     41        final GregorianCalendar time = new GregorianCalendar(); 
    4242 
    4343        // Start a 30 because there is one month of difference between