X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2Fmanynodes.c;h=3d82bd31d921f32dea1ad789f84b0d070fc02636;hb=HEAD;hp=923b5542e0612bd214901f9e0095bf4631954137;hpb=8d4b96efb7955eaa96174af4804597f92e124041;p=meshlink diff --git a/examples/manynodes.c b/examples/manynodes.c index 923b5542..64ccd9c1 100644 --- a/examples/manynodes.c +++ b/examples/manynodes.c @@ -123,12 +123,12 @@ static void exportmeshgraph_timer(int signum) { gettimeofday(&ts, NULL); char name[1024]; - snprintf(name, sizeof(name), "%sgraph_%ld_%03ld.json", namesprefix, ts.tv_sec, ts.tv_usec / 1000); + snprintf(name, sizeof(name), "%sgraph_%ld_%03ld.json", namesprefix, ts.tv_sec, ts.tv_usec / 1000L); exportmeshgraph(name); } -#ifndef _WIN32 +#ifdef ITIMER_REAL static bool exportmeshgraph_started = false; static bool exportmeshgraph_end(void) {