|
|
@ -95,7 +95,7 @@ static output_t *output_alloc(const char *path, const char *name) { |
|
|
return ret; |
|
|
return ret; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
output_t *output_new(const char *path, const char *call, const char *type) { |
|
|
|
|
|
|
|
|
output_t *output_new(const char *path, const char *call, const char *type, const char *label) { |
|
|
// construct output file name |
|
|
// construct output file name |
|
|
struct timeval now; |
|
|
struct timeval now; |
|
|
struct tm tm; |
|
|
struct tm tm; |
|
|
@ -124,6 +124,9 @@ output_t *output_new(const char *path, const char *call, const char *type) { |
|
|
case 't': |
|
|
case 't': |
|
|
g_string_append(f, type); |
|
|
g_string_append(f, type); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case 'l': |
|
|
|
|
|
g_string_append(f, label); |
|
|
|
|
|
break; |
|
|
case 'Y': |
|
|
case 'Y': |
|
|
g_string_append_printf(f, "%04i", tm.tm_year + 1900); |
|
|
g_string_append_printf(f, "%04i", tm.tm_year + 1900); |
|
|
break; |
|
|
break; |
|
|
|