Changeset 10862 in josm for trunk/src/com/drew/metadata/exif/makernotes/CanonMakernoteDescriptor.java
- Timestamp:
- 2016-08-20T20:58:03+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/metadata/exif/makernotes/CanonMakernoteDescriptor.java
r8243 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 24 24 import com.drew.lang.annotations.Nullable; 25 25 import com.drew.metadata.TagDescriptor; 26 27 import java.text.DecimalFormat; 26 28 27 29 import static com.drew.metadata.exif.makernotes.CanonMakernoteDirectory.*; … … 138 140 public String getSerialNumberDescription() 139 141 { 142 // http://www.ozhiker.com/electronics/pjmt/jpeg_info/canon_mn.html 140 143 Integer value = _directory.getInteger(TAG_CANON_SERIAL_NUMBER); 141 144 if (value == null) … … 673 676 return "Self timer not used"; 674 677 } else { 675 // TODO find an image that tests this calculation676 return Double.toString((double)value * 0.1d) + " sec";678 DecimalFormat format = new DecimalFormat("0.##"); 679 return format.format((double)value * 0.1d) + " sec"; 677 680 } 678 681 }
Note:
See TracChangeset
for help on using the changeset viewer.
