Changeset 46c8ff5682f6e2498f7d9295573d3ebcc82b9eb2
- Timestamp:
- 02/25/08 22:03:06
(5 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
| rc04dcf5 |
r46c8ff5 |
|
| 100 | 100 | noit_check_stats_clear(¤t); |
|---|
| 101 | 101 | |
|---|
| 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++; |
|---|
| 105 | 105 | |
|---|
| 106 | 106 | gettimeofday(¤t.whence, NULL); |
|---|
| … | … | |
| 111 | 111 | snprintf(buff, sizeof(buff), "%d/%d gets", nresults, info->noids); |
|---|
| 112 | 112 | current.status = buff; |
|---|
| | 113 | |
|---|
| | 114 | /* We have no results over which to iterate. */ |
|---|
| | 115 | if(!pdu) |
|---|
| | 116 | noit_check_set_stats(self, check, ¤t); |
|---|
| 113 | 117 | |
|---|
| 114 | 118 | /* manipulate the information ourselves */ |
|---|