Use the infinite symbol rather than "Inf."
This commit is contained in:
parent
7230f1113c
commit
66f77fa311
4
Jamfile
4
Jamfile
|
@ -33,9 +33,11 @@ if $(OS) = MACOSX
|
|||
macosx/ProgressCell.h
|
||||
macosx/ProgressCell.m
|
||||
macosx/main.m
|
||||
macosx/StringAdditions.h
|
||||
macosx/StringAdditions.m
|
||||
macosx/TorrentTableView.h
|
||||
macosx/TorrentTableView.m
|
||||
macosx/Transmission.sdef
|
||||
macosx/Transmission.sdef
|
||||
macosx/Transmission.xcodeproj/project.pbxproj
|
||||
macosx/Transmission_Prefix.pch
|
||||
macosx/Utils.h ;
|
||||
|
|
|
@ -36,12 +36,12 @@
|
|||
return [NSString stringWithFormat: @"%.2f GB/s", speed / 1048576];
|
||||
}
|
||||
|
||||
+ (NSString *) stringForRatio: (uint64_t) down upload: (uint64_t) up;
|
||||
+ (NSString *) stringForRatio: (uint64_t) down upload: (uint64_t) up
|
||||
{
|
||||
if( !down && !up )
|
||||
return @"N/A";
|
||||
if( !down )
|
||||
return @"Inf.";
|
||||
return [NSString stringWithUTF8String: "\xE2\x88\x9E"];
|
||||
|
||||
float ratio = (float) up / (float) down;
|
||||
if( ratio < 10.0 )
|
||||
|
|
Loading…
Reference in New Issue