From 4dd36a833132eb36a76f3388597c7e3a6a22a32b Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 4 Mar 2008 03:27:25 +0000 Subject: [PATCH] fix group ratio, thanks to charles --- macosx/Controller.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index d64d3caf7..2dadad8f1 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -42,7 +42,9 @@ #import "ExpandedPathToPathTransformer.h" #import "ExpandedPathToIconTransformer.h" #import "SpeedLimitToTurtleIconTransformer.h" -//#include "utils.h" //tr_getRatio() + +#define SYS_DARWIN +#include "utils.h" //tr_getRatio() #import @@ -2515,7 +2517,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi } #warning fix - return [NSString stringForRatio: /*tr_getRatio(uploaded, downloaded)*/0]; + return [NSString stringForRatio: tr_getRatio(uploaded, downloaded)]; } else {