From b1daf30d61989d0813ea73ac19f36b4de6abf13d Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Tue, 23 Jun 2020 17:05:59 -0400 Subject: [PATCH] rgw: orphan-list timestamp fix When creating intermediate and output files, the rgw-orphan-list script uses a timestamp using the `date` command. The hour was inserted with "%k" but that padds with a space rather than a zero. So that's changed to "%H". Signed-off-by: J. Eric Ivancich --- src/rgw/rgw-orphan-list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw-orphan-list b/src/rgw/rgw-orphan-list index 5af5282e037..9219486a71b 100755 --- a/src/rgw/rgw-orphan-list +++ b/src/rgw/rgw-orphan-list @@ -8,7 +8,7 @@ export LANG=C out_dir="." temp_file=/tmp/temp.$$ -timestamp=$(date -u +%Y%m%d%k%M) +timestamp=$(date -u +%Y%m%d%H%M) lspools_err="${out_dir}/lspools-${timestamp}.error" rados_out="${out_dir}/rados-${timestamp}.intermediate" rados_err="${out_dir}/rados-${timestamp}.error" -- 2.39.5