[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/amarok/src [BROKEN EMAIL]
From:       Christian Muehlhaeuser <chris () chris ! de>
Date:       2004-08-26 19:52:59
Message-ID: 20040826195259.910A0608C () office ! kde ! org
[Download RAW message or body]

CVS commit by muesli: 

* FIX: Score calculation was borked.


  M +1 -1      collectiondb.cpp   1.96
  M +1 -1      contextbrowser.cpp   1.110


--- kdeextragear-1/amarok/src/collectiondb.cpp  #1.95:1.96
@@ -356,5 +356,5 @@ CollectionDB::addSongPercentage( const Q
                     .arg( escapeString( url ) )
                     .arg( values[1] )
-                    .arg( ( percentage + values[2].toDouble() ) / ( \
values[0].toInt() + 1 ) ) +                    .arg( ( ( percentage * \
                values[0].toInt() ) + values[2].toDouble() ) / ( values[0].toInt() + \
                1 ) )
                     .arg( values[0] + " + 1" ) );
     } else

--- kdeextragear-1/amarok/src/contextbrowser.cpp  #1.109:1.110
@@ -209,5 +209,5 @@ void ContextBrowser::engineTrackEnded( i
     if ( finalPosition > trackLength ) finalPosition = trackLength;
     
-    int pct = (int)( (double)finalPosition / (double)trackLength ) * 100;
+    int pct = ( (double)finalPosition / (double)trackLength ) * 100;
     kdDebug() << "percentage played: " << pct << endl;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic