• Status Closed
  • Percent Complete
  • Task Type Bugs
  • Category Database
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by PaulJam - 2008-05-06
Last edited by pamaury - 2010-02-02

FS#8967 - Database - negative autoscore


i noticed that some of my songs have a negative autoscore in the database.
There seems to be an overflow in the autoscore calculation when the playtime exceeds a certain value (propably (2^31)/100).

Here is the code where the overflow seems to happen (the multiplication of the playtime with 100).
apps/tagcache.c, line 794 and following:

              data = 100 * idx->tag_seek[tag_playtime]
                  / idx->tag_seek[tag_length]
                  / idx->tag_seek[tag_playcount];

H300 with r17393

Closed by  pamaury
2010-02-02 20:53
Reason for closing:  Fixed
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407



Available keyboard shortcuts


Task Details

Task Editing