Changeset 46c8ff5682f6e2498f7d9295573d3ebcc82b9eb2

Show
Ignore:
Timestamp:
02/25/08 22:03:06 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203976986 +0000
git-parent:

[2061e31486f948b64c509cf31ce47b4ad863a8c9]

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

handle timeouts correctly

Files:

Legend:

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

    rc04dcf5 r46c8ff5  
    100100  noit_check_stats_clear(&current); 
    101101 
    102   for(vars = pdu->variables; vars; vars = vars->next_variable) { 
    103     nresults++; 
    104   } 
     102  if(pdu) 
     103    for(vars = pdu->variables; vars; vars = vars->next_variable) 
     104      nresults++; 
    105105 
    106106  gettimeofday(&current.whence, NULL); 
     
    111111  snprintf(buff, sizeof(buff), "%d/%d gets", nresults, info->noids); 
    112112  current.status = buff; 
     113 
     114  /* We have no results over which to iterate. */ 
     115  if(!pdu) 
     116    noit_check_set_stats(self, check, &current); 
    113117 
    114118  /* manipulate the information ourselves */