Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
massie committed Mar 21, 2006
1 parent 6de8ac7 commit 52ebc42
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions monitor-core/gmetad/process_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,16 @@ startElement_GANGLIA_XML(void *data, const char *el, const char **attr)
if (xt->tag == VERSION_TAG)
{
/* Process the version tag later */
if(! strstr( attr[i+1], "2.5." ) )
{
debug_msg("[%s] is an OLD version", xmldata->ds->name);
if(! strncmp( attr[i+1], "2.", 2) )
{
debug_msg("[%s] is a 2.x data stream", xmldata->ds->name);
xmldata->old = 1;
}
}
else
{
debug_msg("[%s] is not a 2.x data stream", xmldata->ds->name);
xmldata->old = 0;
}
}
}
return 0;
Expand Down

0 comments on commit 52ebc42

Please sign in to comment.