From db570f7a03cf9f9ccecfef69c6f51cf9d6b0ec0f Mon Sep 17 00:00:00 2001 From: hahahashen <59725322+hahahashen@users.noreply.github.com> Date: Sat, 24 Aug 2024 21:16:27 +0800 Subject: [PATCH] fix pttl cmd error (#433) --- src/cmd_keys.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd_keys.cc b/src/cmd_keys.cc index d30cb5c87..f8a56b59c 100644 --- a/src/cmd_keys.cc +++ b/src/cmd_keys.cc @@ -231,7 +231,7 @@ void PttlCmd::DoCmd(PClient* client) { if (timestamp == -3) { client->SetRes(CmdRes::kErrOther, "ttl internal error"); } else { - client->AppendInteger(timestamp); + client->AppendInteger(timestamp * 1000); } }