From 209cb7ab327eac8ce577a66a220244e38ab0d52e Mon Sep 17 00:00:00 2001 From: Dylan Mikus Date: Mon, 21 Mar 2016 20:43:10 +0000 Subject: [PATCH] Modifications to recording metadata start/end time lines In the call recording metadata file, start and end timestamps for the call are now "key: value" formatted so you can tell what they are just by reading the metadata file. --- daemon/recording.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/recording.c b/daemon/recording.c index 4db0fb87d..10c7db5ce 100644 --- a/daemon/recording.c +++ b/daemon/recording.c @@ -241,10 +241,10 @@ int meta_finish_file(struct call *call) { struct tm *timeinfo; timeinfo = localtime(&start); strftime(timebuffer, 20, "%FT%T", timeinfo); - fprintf(recording->meta_fp, "\n\n%s\n", timebuffer); + fprintf(recording->meta_fp, "\n\ncall start time: %s\n", timebuffer); timeinfo = localtime(&end); strftime(timebuffer, 20, "%FT%T", timeinfo); - fprintf(recording->meta_fp, "%s\n", timebuffer); + fprintf(recording->meta_fp, "call end time: %s\n", timebuffer); // Print metadata fprintf(recording->meta_fp, "\n\n%s\n", recording->metadata->s);