Changeset 95623e8a5216c115a97b91e085c15cd6bbf3f8c9

Show
Ignore:
Timestamp:
01/23/10 04:03:04 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1264219384 +0000
git-parent:

[35d80a0f98b37605f57c21fbd5751fce4958910f]

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

closes #243

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/selfcheck.c

    r88a7178 r95623e8  
    7474static void selfcheck_log_results(noit_module_t *self, noit_check_t *check) { 
    7575  char buff[128]; 
     76  u_int64_t u64; 
    7677  int64_t s64; 
    7778  int32_t s32; 
     
    109110  noit_build_version(buff, sizeof(buff)); 
    110111  noit_stats_set_metric(&current, "version", METRIC_STRING, buff); 
     112  u64 = noit_check_completion_count(); 
     113  noit_stats_set_metric(&current, "checks_run", METRIC_UINT64, &u64); 
    111114 
    112115  noit_check_set_stats(self, check, &current); 
  • src/noit_check.c

    rd38990d r95623e8  
    5454#define MAX_INITIAL_STUTTER 60000 
    5555 
     56static u_int64_t check_completion_count = 0; 
    5657static noit_hash_table polls = NOIT_HASH_EMPTY; 
    5758static noit_skiplist watchlist = { 0 }; 
     
    6263}; 
    6364 
     65u_int64_t noit_check_completion_count() { 
     66  return check_completion_count; 
     67} 
    6468static void register_console_check_commands(); 
    6569static int check_recycle_bin_processor(eventer_t, int, void *, 
     
    939943  /* Write out all metrics */ 
    940944  noit_check_log_metrics(check); 
     945  /* count the check as complete */ 
     946  check_completion_count++; 
    941947 
    942948  for(dep = check->causal_checks; dep; dep = dep->next) { 
  • src/noit_check.h

    rd152b96 r95623e8  
    149149 
    150150API_EXPORT(void) noit_poller_init(); 
     151API_EXPORT(u_int64_t) noit_check_completion_count(); 
    151152API_EXPORT(int) noit_poller_check_count(); 
    152153API_EXPORT(int) noit_poller_transient_check_count();