Changeset 11012


Ignore:
Timestamp:
Jul 15, 2010, 11:54:22 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) #3429 "GTK properties > information page shows 0%" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r11002 r11012  
    800800        else {
    801801            char buf2[32], unver[64], total[64];
    802             const double ratio = 100.0 * ( leftUntilDone ? ( haveValid + haveUnchecked ) / sizeWhenDone : 1 );
     802            const double ratio = 100.0 * ( leftUntilDone ? ( haveValid + haveUnchecked ) / (double)sizeWhenDone : 1 );
    803803            tr_strlpercent( buf2, ratio, sizeof( buf2 ) );
    804804            tr_strlsize( total, haveUnchecked + haveValid, sizeof( total ) );
Note: See TracChangeset for help on using the changeset viewer.