# | Line 387 | Line 387 | int send_stats(ihost_state_t *ihost_state, char *data_ | |
---|---|---|
387 | ||
388 | close(sd); | |
389 | ||
390 | + | printf("%s\n",data_stream); |
391 | return 0; | |
392 | } | |
393 | ||
# | Line 443 | Line 444 | int main(int argc, char **argv){ | |
444 | if(cur_time>=udp_time){ | |
445 | /*printf("sending UDP\n");*/ | |
446 | stat_grab_time=time(NULL); | |
447 | < | if((xml_stats=stat_grab(&ihost_state, counter)) == NULL){ |
447 | > | if((xml_stats=stat_grab(&ihost_state, counter++)) == NULL){ |
448 | errf("Failed to get stats (%m)"); | |
449 | exit(1); | |
450 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |