/*
- Copyright (C) 2000-2004 SKYRIX Software AG
+ Copyright (C) 2000-2005 SKYRIX Software AG
- This file is part of OpenGroupware.org.
+ This file is part of SOPE.
- OGo is free software; you can redistribute it and/or modify it under
+ SOPE is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
- OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with OGo; see the file COPYING. If not, write to the
+ License along with SOPE; see the file COPYING. If not, write to the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
@implementation WOStatisticsStore
-static unsigned char *monthAbbr[13] = {
+static char *monthAbbr[13] = {
"Dec",
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
if (gmt == nil)
gmt = [[NSTimeZone timeZoneWithAbbreviation:@"GMT"] retain];
-
+
runMultithreaded = [[NSUserDefaults standardUserDefaults]
- boolForKey:@"WORunMultithreaded"];
+ boolForKey:@"WORunMultithreaded"];
}
- (id)init {
return [NSNumberClass numberWithUnsignedInt:i];
}
static id mkdbl(double d) {
-#if 1
- unsigned char buf[64];
+#if 1 // TODO: why is that?
+ char buf[64];
sprintf(buf, "%.3f", d);
return [NSStringClass stringWithCString:buf];
#else
if (pageStats->totalResponseCount > 0) {
[stats setObject:
- mkuint(pageStats->totalResponseSize / pageStats->totalResponseCount)
+ mkuint(pageStats->totalResponseSize/pageStats->totalResponseCount)
forKey:@"averageResponseSize"];
[stats setObject:
mkdbl(pageStats->totalDuration / pageStats->totalResponseCount)
NSCalendarDate *now;
NSDate *startDate;
NSString *tmp;
- unsigned char buf[64];
+ char buf[64];
request = [_context request];
result = [NSMutableString stringWithCapacity:256];