From 66f77fa3113662d7db2e9bd9f2570b37eeca670a Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Wed, 8 Feb 2006 09:49:06 +0000 Subject: [PATCH] Use the infinite symbol rather than "Inf." --- Jamfile | 4 +++- macosx/StringAdditions.m | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Jamfile b/Jamfile index b09f916d8..b7b243d83 100644 --- a/Jamfile +++ b/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 ; diff --git a/macosx/StringAdditions.m b/macosx/StringAdditions.m index 064bfdc6b..0128be820 100644 --- a/macosx/StringAdditions.m +++ b/macosx/StringAdditions.m @@ -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 )