Bugs item #3161536, was opened at 2011-01-19 16:39
Message generated for change (Tracker Item Submitted) made by cpudney
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=744692&aid=3161536&group_id=139835
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: User interface
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: cpudney (cpudney)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sub-second RTs are incorrectly parsed
Initial Comment:
If you set the "Retention time format" number preference to "time" and a
pattern that includes milliseconds, e.g. m:ss:SSS then when this pattern is
used to parse parameter values, the milliseconds are ignored.
There is a bug in NumberFormatter.parse(String, ParsePosition). The line
return (sdf.parse(str, pos).getTime()) / 1000l;
should be
return (double) sdf.parse(str, pos).getTime() / 1000.0;
The former does *integer* division and so milliseconds are rounded out. Using
floating point arithmetic (the latter) fixes the problem.
Regards,
Chris.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=744692&aid=3161536&group_id=139835
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Mzmine-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mzmine-devel