commons.h (goaccess-1.6.5) | : | commons.h (goaccess-1.7) | ||
---|---|---|---|---|
skipping to change at line 46 | skipping to change at line 46 | |||
#include <time.h> | #include <time.h> | |||
#include <stdint.h> | #include <stdint.h> | |||
#include "gslist.h" | #include "gslist.h" | |||
/* Remove the __attribute__ stuff when the compiler is not GCC. */ | /* Remove the __attribute__ stuff when the compiler is not GCC. */ | |||
#if !__GNUC__ | #if !__GNUC__ | |||
#define __attribute__(x) /**/ | #define __attribute__(x) /**/ | |||
#endif | #endif | |||
#define GO_UNUSED __attribute__((unused)) | #define GO_UNUSED __attribute__((unused)) | |||
#define GO_VERSION "1.6.5" | #define GO_VERSION "1.7" | |||
#define GO_WEBSITE "https://goaccess.io/" | #define GO_WEBSITE "https://goaccess.io/" | |||
extern struct tm now_tm; | extern struct tm now_tm; | |||
/* common char array buffer size */ | /* common char array buffer size */ | |||
#define INIT_BUF_SIZE 1024 | #define INIT_BUF_SIZE 1024 | |||
/* total number of modules */ | /* total number of modules */ | |||
#ifdef HAVE_GEOLOCATION | #ifdef HAVE_GEOLOCATION | |||
#define TOTAL_MODULES 18 | #define TOTAL_MODULES 19 | |||
#else | #else | |||
#define TOTAL_MODULES 17 | #define TOTAL_MODULES 17 | |||
#endif | #endif | |||
/* maximum number of items within a panel */ | /* maximum number of items within a panel */ | |||
#define MAX_CHOICES 366 | #define MAX_CHOICES 366 | |||
/* real-time */ | /* real-time */ | |||
#define MAX_CHOICES_RT 50 | #define MAX_CHOICES_RT 50 | |||
/* max default items when date-spec = min */ | /* max default items when date-spec = min */ | |||
#define MAX_CHOICES_MINUTE 1440 /* 24hrs */ | #define MAX_CHOICES_MINUTE 1440 /* 24hrs */ | |||
skipping to change at line 112 | skipping to change at line 112 | |||
VISIT_TIMES, | VISIT_TIMES, | |||
VIRTUAL_HOSTS, | VIRTUAL_HOSTS, | |||
REFERRERS, | REFERRERS, | |||
REFERRING_SITES, | REFERRING_SITES, | |||
KEYPHRASES, | KEYPHRASES, | |||
STATUS_CODES, | STATUS_CODES, | |||
REMOTE_USER, | REMOTE_USER, | |||
CACHE_STATUS, | CACHE_STATUS, | |||
#ifdef HAVE_GEOLOCATION | #ifdef HAVE_GEOLOCATION | |||
GEO_LOCATION, | GEO_LOCATION, | |||
ASN, | ||||
#endif | #endif | |||
MIME_TYPE, | MIME_TYPE, | |||
TLS_TYPE, | TLS_TYPE, | |||
} GModule; | } GModule; | |||
/* Metric totals. These are metrics that have a percent value and are | /* Metric totals. These are metrics that have a percent value and are | |||
* calculated values. */ | * calculated values. */ | |||
typedef struct GPercTotals_ { | typedef struct GPercTotals_ { | |||
uint32_t hits; /* total valid hits */ | uint32_t hits; /* total valid hits */ | |||
uint32_t visitors; /* total visitors */ | uint32_t visitors; /* total visitors */ | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added |