summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index f855deb05..cb829445c 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -118,7 +118,7 @@
extern std::string tradePartnerName;
extern QuitDialog *quitDialog;
-extern int start_time;
+extern time_t start_time;
extern char **environ;
namespace Actions
@@ -1214,7 +1214,7 @@ impHandler0(uptime)
{
// TRANSLATORS: uptime command
debugChatTab->chatLog(strprintf(_("Client uptime: %s"),
- timeDiffToString(cur_time - start_time).c_str()),
+ timeDiffToString(CAST_S32(cur_time - start_time)).c_str()),
ChatMsgType::BY_SERVER);
}
return true;