Bug 9160 - Time and duration are truncated to integers
: Time and duration are truncated to integers
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 7.1
: PC Ubuntu Linux
: P5 normal (vote)
: 7.x
Assigned To: Alan Young
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-14 19:31 UTC by Jeffrey Barish
Modified: 2009-09-08 09:13 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Barish 2008-08-14 19:31:37 UTC
According to the documentation for the command-line interface, the time and duration commands should return a float.  They actually return an integer that is apparently obtained by truncating the correct time.  (For example, a time of 1.9999 would be reported as 1.)  Here is actual output:

00%3A04%3A20%3A16%3A42%3Af7 duration 656
00%3A04%3A20%3A16%3A42%3Af7 time 56

If SqueezeCenter is merely reporting a time and duration that it obtains from the Receiver, then it is possible that the bug is actually in the Receiver.
Comment 1 Blackketter Dean 2008-08-14 21:29:39 UTC
Alan: Would this be yours for the new_streaming work?
Comment 2 Alan Young 2008-08-14 22:22:23 UTC
It is not related to new-streaming specifically but I can take a look at it.
Comment 3 Alan Young 2008-09-24 09:01:52 UTC
The Squeezebox protocol (slimproto) used to report the time played only in integral seconds, but millisecond-precision was added in the firmware with SC 7.0. Use of the millisecond-precision could be made more widespread.

Track duration is generally a floating-point quantity, with a couple of exceptions, but the track-scanning routines for the different formats may only report integral seconds. In some cases it is simply calculated by dividing the track length in bits (possibly minus any headers) by the nominal bitrate: this can be substantially inaccurate. 
Comment 4 Alan Young 2008-09-24 09:05:59 UTC
Change 23283.
Comment 5 James Richardson 2008-12-15 12:06:12 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 6 Chris Owens 2009-07-31 10:27:18 UTC
Reduce number of active targets for SC