Use the infinite symbol rather than "Inf."

This commit is contained in:
Eric Petit 2006-02-08 09:49:06 +00:00
parent 7230f1113c
commit 66f77fa311
2 changed files with 5 additions and 3 deletions

View File

@ -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 ;

View File

@ -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 )