Changeset 4143
- Timestamp:
- Dec 13, 2007, 4:31:38 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r4124 r4143 12 12 + Pieces Bar (return of Advanced Bar) 13 13 + Availability Bar (overlay on regular bar) 14 + Leopard: Time Machine will ignore incomplete downloads15 14 + Display remaining time for seeding transfers 16 15 + Sort by total activity 16 + Leopard: Time Machine will ignore incomplete downloads 17 17 + Leopard: Fix bug where text fields would reject localized decimal values 18 18 - GTK+: -
trunk/libtransmission/stats.c
r3990 r4143 139 139 const struct tr_stats_handle * stats = handle->sessionStats; 140 140 *setme = stats->single; 141 setme->ratio = setme->downloadedBytes ? (double)setme->uploadedBytes / (double)setme->downloadedBytes : TR_RATIO_NA; 141 142 setme->ratio = setme->downloadedBytes ? (double)setme->uploadedBytes / (double)setme->downloadedBytes 143 : ( setme->uploadedBytes ? TR_RATIO_INF : TR_RATIO_NA ); 144 142 145 setme->secondsActive += ( time(NULL) - stats->startTime ); 143 146 } -
trunk/libtransmission/transmission.h
r4092 r4143 700 700 701 701 #define TR_RATIO_NA -1 702 #define TR_RATIO_INF -2 702 703 float ratio; 703 704 -
trunk/macosx/NSStringAdditions.m
r3977 r4143 98 98 if (ratio == TR_RATIO_NA) 99 99 return NSLocalizedString(@"N/A", "No Ratio"); 100 else if (ratio == TR_RATIO_INF) 101 return [NSString stringWithUTF8String: "\xE2\x88\x9E"]; 100 102 else if (ratio < 0) 101 103 return NSLocalizedString(@"error", "Ratio invalid"); -
trunk/macosx/StatusBarView.m
r4135 r4143 50 50 - (void) setShowOnTiger: (BOOL) show 51 51 { 52 fShow = [NSApp isOnLeopardOrBetter] || show;52 fShow = show || [NSApp isOnLeopardOrBetter]; 53 53 } 54 54
Note: See TracChangeset
for help on using the changeset viewer.