Skip to content

Commit

Permalink
Update format
Browse files Browse the repository at this point in the history
  • Loading branch information
syehorov committed Jun 19, 2024
1 parent 1806802 commit 88e2074
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static bool output_file_ready(channel_t* channel, file_data* fdata, mix_modes mi
}

char timestamp[32];
if (strftime(timestamp, sizeof(timestamp), fdata->split_on_transmission ? "_%Y%m%d_%H%M%S" : "_%Y%m%d_%H", time) == 0) {
if (strftime(timestamp, sizeof(timestamp), fdata->split_on_transmission ? "%m-%d-%Y %H-%M-%S" : "%m-%d-%Y %H-%M-%S", time) == 0) {
log(LOG_NOTICE, "strftime returned 0\n");
return false;
}
Expand All @@ -433,11 +433,11 @@ static bool output_file_ready(channel_t* channel, file_data* fdata, mix_modes mi

// use a string stream to build the output filepath
std::stringstream ss;
ss << output_dir << '/' << fdata->basename << timestamp;
ss << output_dir << '/' << timestamp;
if (fdata->include_freq) {
ss << '_' << channel->freqlist[channel->freq_idx].frequency;
ss << ' ' << channel->freqlist[channel->freq_idx].label;
}
ss << fdata->suffix;
ss << ' SRC(' << fdata->basename << ')' << fdata->suffix;
fdata->file_path = ss.str();

fdata->file_path_tmp = fdata->file_path + ".tmp";
Expand Down

0 comments on commit 88e2074

Please sign in to comment.