Changeset 12759


Ignore:
Timestamp:
Aug 26, 2011, 8:02:40 PM (10 years ago)
Author:
jordan
Message:

(trunk web) in the statusbar, don't show idle speeds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/transmission.js

    r12758 r12759  
    11651165                        d += row.getDownloadSpeed();
    11661166                }
    1167                 setInnerHTML($('#statusbar #speed-up-label')[0], '↑ ' + Transmission.fmt.speedBps(u));
    1168                 setInnerHTML($('#statusbar #speed-dn-label')[0], '↓ ' + Transmission.fmt.speedBps(d));
     1167
     1168                var fmt = Transmission.fmt;
     1169                setInnerHTML($('#statusbar #speed-up-label')[0], u ? '↑ ' + fmt.speedBps(u) : '');
     1170                setInnerHTML($('#statusbar #speed-dn-label')[0], d ? '↓ ' + fmt.speedBps(d) : '');
    11691171        },
    11701172
Note: See TracChangeset for help on using the changeset viewer.