FS-3166 --resolve

This commit is contained in:
Anthony Minessale committed 2011-04-22 16:43:29 -05:00
1 parent c22aac0eac
commit 73279f01bf
41 files changed
+125 -258

No files matched your search

@@ -94,7 +94,6 @@ static void do_rotate(cdr_fd_t *fd)
char date[80] = "";
switch_size_t retsize;
char *p;
size_t len;
close(fd->fd);
fd->fd = -1;
@@ -103,7 +102,7 @@ static void do_rotate(cdr_fd_t *fd)
switch_time_exp_lt(&tm, switch_micro_time_now());
switch_strftime_nocheck(date, &retsize, sizeof(date), "%Y-%m-%d-%H-%M-%S", &tm);
len = strlen(fd->path) + strlen(date) + 2;
p = switch_mprintf("%s.%s", fd->path, date);
assert(p);
switch_file_rename(fd->path, p, globals.pool);