summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79cb0ad)
raw | patch | inline | side by side (parent: 79cb0ad)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 9 Apr 2010 20:20:42 +0000 (22:20 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 9 Apr 2010 20:20:42 +0000 (22:20 +0200) |
src/pinba.c | patch | blob | history |
diff --git a/src/pinba.c b/src/pinba.c
index da54e9d52d7bf2c25703f6ca7567bfb4bbe393cd..a00720f160d663ea178aa961e0f9837d25775b9f 100644 (file)
--- a/src/pinba.c
+++ b/src/pinba.c
node->mem_peak = NAN;
/* fill query data */
- strset(&node->name, name);
- strset(&node->host, host);
- strset(&node->server, server);
- strset(&node->script, script);
+ strset (&node->name, name);
+ strset (&node->host, host);
+ strset (&node->server, server);
+ strset (&node->script, script);
/* increment counter */
stat_nodes_num++;
for (i = 0; i < stat_nodes_num; i++)
{
- if(stat_nodes[i].host && strcmp(request->hostname, stat_nodes[i].host))
+ if ((stat_nodes[i].host != NULL)
+ && (strcmp (request->hostname, stat_nodes[i].host) != 0))
continue;
- if(stat_nodes[i].server && strcmp(request->server_name, stat_nodes[i].server))
+
+ if ((stat_nodes[i].server != NULL)
+ && (strcmp (request->server_name, stat_nodes[i].server) != 0))
continue;
- if(stat_nodes[i].script && strcmp(request->script_name, stat_nodes[i].script))
+
+ if ((stat_nodes[i].script != NULL)
+ && (strcmp (request->script_name, stat_nodes[i].script) != 0))
continue;
service_statnode_process(&stat_nodes[i], request);