Show
Ignore:
Timestamp:
02/19/08 02:40:41 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203388841 +0000
git-parent:

[b7510b4e0ce386e83beddeb468cdc1f35f16f7e2]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1203388841 +0000
Message:

change the availability stuff to be characters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check.h

    re01b3ad r646e6d2  
    3939#define NP_UNCONFIG 0x00000008 
    4040 
    41 #define NP_UNKNOWN              /* stats_t.{available,state} */ 
    42 #define NP_AVAILABLE            /* stats_t.available */ 
    43 #define NP_UNAVAILABLE -1          /* stats_t.available */ 
    44 #define NP_BAD                  /* stats_t.state */ 
    45 #define NP_GOOD                 /* stats_t.state */ 
     41#define NP_UNKNOWN '0'             /* stats_t.{available,state} */ 
     42#define NP_AVAILABLE 'A'           /* stats_t.available */ 
     43#define NP_UNAVAILABLE 'U'         /* stats_t.available */ 
     44#define NP_BAD 'B'                 /* stats_t.state */ 
     45#define NP_GOOD 'G'                /* stats_t.state */ 
    4646 
    4747typedef struct { 
     
    5757typedef struct { 
    5858  struct timeval whence; 
    59   int16_t available; 
    60   int16_t state; 
     59  int8_t available; 
     60  int8_t state; 
    6161  u_int32_t duration; 
    6262  char *status; 
     
    143143  noit_poller_lookup_by_name(char *target, char *name); 
    144144 
     145API_EXPORT(void) 
     146  noit_check_stats_clear(stats_t *s); 
     147 
    145148struct _noit_module; 
    146149API_EXPORT(void)