]> err.no Git - sope/blobdiff - sope-appserver/NGObjWeb/WOStatisticsStore.m
fixed an issue with lowercase 'webobject name' tags
[sope] / sope-appserver / NGObjWeb / WOStatisticsStore.m
index 7f19c50f478a551e2d0371824989c6f4524c0e9e..b91d90790d2499e9bfae15fcf6114507bea10198 100644 (file)
@@ -1,20 +1,20 @@
 /*
-  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.
 */
@@ -49,7 +49,7 @@
 
 @implementation WOStatisticsStore
 
-static unsigned char *monthAbbr[13] = {
+static char *monthAbbr[13] = {
   "Dec",
   "Jan", "Feb", "Mar", "Apr", "May", "Jun",
   "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
@@ -69,9 +69,9 @@ static BOOL  runMultithreaded = NO;
 
   if (gmt == nil)
     gmt = [[NSTimeZone timeZoneWithAbbreviation:@"GMT"] retain];
-
+  
   runMultithreaded = [[NSUserDefaults standardUserDefaults]
-                      boolForKey:@"WORunMultithreaded"];
+                                     boolForKey:@"WORunMultithreaded"];
 }
 
 - (id)init {
@@ -99,8 +99,8 @@ static id mkuint(unsigned int i) {
   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
@@ -138,7 +138,7 @@ static id mkdbl(double d) {
   
   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)
@@ -380,7 +380,7 @@ static id mkdbl(double d) {
   NSCalendarDate  *now;
   NSDate          *startDate;
   NSString        *tmp;
-  unsigned char   buf[64];
+  char            buf[64];
   
   request = [_context request];
   result  = [NSMutableString stringWithCapacity:256];