From 96f57bbe457995c333d3d83d1aa833fe32465ac5 Mon Sep 17 00:00:00 2001 From: oguyon Date: Sun, 28 Jul 2024 00:10:35 -1000 Subject: [PATCH] hrmin string --- src/COREMOD_memory/logshmim.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/COREMOD_memory/logshmim.c b/src/COREMOD_memory/logshmim.c index e2d3920d..0767314d 100644 --- a/src/COREMOD_memory/logshmim.c +++ b/src/COREMOD_memory/logshmim.c @@ -774,18 +774,14 @@ static errno_t compute_function() printf("hrmin: %s\n", hrminstring); - - - struct timespec timenowStart; clock_gettime(CLOCK_MILK, &timenowStart); WRITE_FULLFILENAME(FITSffilename, - "%s/%s_%02d:%02d:%02ld.%09ld.fits", + "%s/%s_%s:%02ld.%09ld.fits", savedirname, streamname, - uttimeStart->tm_hour, - uttimeStart->tm_min, + hrminstring, timenowStart.tv_sec % 60, timenowStart.tv_nsec); @@ -796,11 +792,10 @@ static errno_t compute_function() WRITE_FULLFILENAME(ASCIITIMEffilename, - "%s/%s_%02d:%02d:%02ld.%09ld.txt", + "%s/%s_%s:%02ld.%09ld.txt", savedirname, streamname, - uttimeStart->tm_hour, - uttimeStart->tm_min, + hrminstring, timenowStart.tv_sec % 60, timenowStart.tv_nsec);