src/inc/apacheLog.h 1.3
1.3 2009/08/29 02:34:52 kent
Updating runTime to be milliseconds not seconds in comment.
Index: src/inc/apacheLog.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/apacheLog.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 1000000 -r1.2 -r1.3
--- src/inc/apacheLog.h 27 Aug 2009 20:17:11 -0000 1.2
+++ src/inc/apacheLog.h 29 Aug 2009 02:34:52 -0000 1.3
@@ -1,37 +1,37 @@
/* apacheLog - stuff to parse out apache web server logs, currently
* just the access log. */
#ifndef APACHELOG_H
#define APACHELOG_H
struct apacheAccessLog
/* Parsed out apache access log line */
{
struct apacheAccessLog *next;
char *buf; /* All memory for apacheAccessLog fields is allocated at once here. */
char *ip; /* IP Address: dotted quad of numbers, or xxx.com. */
char *dash1; /* Unknown, usually a dash */
char *dash2; /* Unknown, usually a dash */
char *timeStamp; /* Time stamp like 23/Nov/2003:04:21:08 */
char *timeZone; /* Extra number after timeStamp, usually -0800 */
char *method; /* GET/POST etc. */
char *url; /* Requested URL */
char *httpVersion; /* Something like HTTP/1.1 */
int status; /* Status code - 200 is good! */
char *num1; /* Some number, I'm not sure what it is. */
char *referrer; /* Referring URL, may be NULL. */
char *program; /* Requesting program, often Mozilla 4.0 */
time_t tick; /* Unix tick (seconds since 1970) - derived from timeStamp. */
- int runTime; /* Overall time (optional) in seconds */
+ int runTime; /* Overall time (optional) in milliseconds */
};
struct apacheAccessLog *apacheAccessLogParse(char *line,
char *fileName, int lineIx);
/* Return a apacheAccessLog from line. Return NULL if there's a parsing
* problem, but don't abort. */
void apacheAccessLogFree(struct apacheAccessLog **pLl);
/* Free up apacheAccessLog. */
#endif /* APACHELOG_H */