diff --git a/src/configure.c b/src/configure.c index 1714d9f5..6d3cf9cb 100644 --- a/src/configure.c +++ b/src/configure.c @@ -245,7 +245,7 @@ readBackupCatalogConfigFile(void) { 's', 0, "error-log-filename", &(config->error_log_filename), SOURCE_CMDLINE }, { 's', 0, "log-directory", &(config->log_directory), SOURCE_CMDLINE }, { 'U', 0, "log-rotation-size", &(config->log_rotation_size), SOURCE_CMDLINE, SOURCE_DEFAULT, OPTION_UNIT_KB }, - { 'U', 0, "log-rotation-age", &(config->log_rotation_age), SOURCE_CMDLINE, SOURCE_DEFAULT, OPTION_UNIT_MIN }, + { 'U', 0, "log-rotation-age", &(config->log_rotation_age), SOURCE_CMDLINE, SOURCE_DEFAULT, OPTION_UNIT_MS }, /* connection options */ { 's', 0, "pgdata", &(config->pgdata), SOURCE_FILE_STRICT }, { 's', 0, "pgdatabase", &(config->pgdatabase), SOURCE_FILE_STRICT }, diff --git a/src/pg_probackup.c b/src/pg_probackup.c index b1b51ceb..cf51fd10 100644 --- a/src/pg_probackup.c +++ b/src/pg_probackup.c @@ -199,7 +199,7 @@ static pgut_option options[] = { 's', 143, "error-log-filename", &error_log_filename, SOURCE_CMDLINE }, { 's', 144, "log-directory", &log_directory, SOURCE_CMDLINE }, { 'U', 145, "log-rotation-size", &log_rotation_size, SOURCE_CMDLINE, SOURCE_DEFAULT, OPTION_UNIT_KB }, - { 'U', 146, "log-rotation-age", &log_rotation_age, SOURCE_CMDLINE, SOURCE_DEFAULT, OPTION_UNIT_MIN }, + { 'U', 146, "log-rotation-age", &log_rotation_age, SOURCE_CMDLINE, SOURCE_DEFAULT, OPTION_UNIT_MS }, /* connection options */ { 's', 'd', "pgdatabase", &pgut_dbname, SOURCE_CMDLINE }, { 's', 'h', "pghost", &host, SOURCE_CMDLINE },