summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/users.h4
-rw-r--r--language/anope.en_US.po6
-rw-r--r--modules/operserv/os_stats.cpp4
-rw-r--r--src/messages.cpp2
-rw-r--r--src/users.cpp4
5 files changed, 10 insertions, 10 deletions
diff --git a/include/users.h b/include/users.h
index 168b8e4f4..cfb472140 100644
--- a/include/users.h
+++ b/include/users.h
@@ -23,8 +23,8 @@ typedef Anope::unordered_map<User *> user_map;
extern CoreExport user_map UserListByNick, UserListByUID;
-extern CoreExport int OperCount;
-extern CoreExport unsigned MaxUserCount;
+extern CoreExport size_t OperCount;
+extern CoreExport size_t MaxUserCount;
extern CoreExport time_t MaxUserTime;
/* Online user and channel data. */
diff --git a/language/anope.en_US.po b/language/anope.en_US.po
index ac3cdc251..64ee75a41 100644
--- a/language/anope.en_US.po
+++ b/language/anope.en_US.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Anope\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2025-05-10 00:42+0100\n"
+"POT-Creation-Date: 2025-05-10 00:58+0100\n"
"PO-Revision-Date: 2025-04-25 13:08+0100\n"
"Last-Translator: Sadie Powell <sadie@witchery.services>\n"
"Language-Team: English\n"
@@ -2272,7 +2272,7 @@ msgid "Current number of SQLINEs: %zu"
msgstr ""
#, c-format
-msgid "Current users: %zu (%d ops)"
+msgid "Current users: %zu (%zu ops)"
msgstr ""
msgid "DEL entry-num"
@@ -3499,7 +3499,7 @@ msgid "Matches for %s:"
msgstr ""
#, c-format
-msgid "Maximum users: %d (%s)"
+msgid "Maximum users: %zu (%s)"
msgstr ""
#, c-format
diff --git a/modules/operserv/os_stats.cpp b/modules/operserv/os_stats.cpp
index 24fe787c6..f1f8ecc87 100644
--- a/modules/operserv/os_stats.cpp
+++ b/modules/operserv/os_stats.cpp
@@ -130,8 +130,8 @@ private:
static void DoStatsUptime(CommandSource &source)
{
time_t uptime = Anope::CurTime - Anope::StartTime;
- source.Reply(_("Current users: \002%zu\002 (\002%d\002 ops)"), UserListByNick.size(), OperCount);
- source.Reply(_("Maximum users: \002%d\002 (%s)"), MaxUserCount, Anope::strftime(MaxUserTime, source.GetAccount()).c_str());
+ source.Reply(_("Current users: \002%zu\002 (\002%zu\002 ops)"), UserListByNick.size(), OperCount);
+ source.Reply(_("Maximum users: \002%zu\002 (%s)"), MaxUserCount, Anope::strftime(MaxUserTime, source.GetAccount()).c_str());
source.Reply(_("Services up %s."), Anope::Duration(uptime, source.GetAccount()).c_str());
return;
diff --git a/src/messages.cpp b/src/messages.cpp
index 21850134c..2ed52b3e7 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -433,7 +433,7 @@ void Stats::Run(MessageSource &source, const std::vector<Anope::string> &params,
{
long uptime = static_cast<long>(Anope::CurTime - Anope::StartTime);
IRCD->SendNumeric(RPL_STATSUPTIME, source.GetSource(), Anope::printf("Services up %ld day%s, %02ld:%02ld:%02ld", uptime / 86400, uptime / 86400 == 1 ? "" : "s", (uptime / 3600) % 24, (uptime / 60) % 60, uptime % 60));
- IRCD->SendNumeric(RPL_STATSCONN, source.GetSource(), Anope::printf("Current users: %zu (%d ops); maximum %u", UserListByNick.size(), OperCount, MaxUserCount));
+ IRCD->SendNumeric(RPL_STATSCONN, source.GetSource(), Anope::printf("Current users: %zu (%zu ops); maximum %zu", UserListByNick.size(), OperCount, MaxUserCount));
IRCD->SendNumeric(RPL_STATSLINKINFO, source.GetSource(), params[0][0], "End of /STATS report.");
break;
} /* case 'u' */
diff --git a/src/users.cpp b/src/users.cpp
index 5887bba2f..3e9c2309f 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -25,8 +25,8 @@
user_map UserListByNick, UserListByUID;
-int OperCount = 0;
-unsigned MaxUserCount = 0;
+size_t OperCount = 0;
+size_t MaxUserCount = 0;
time_t MaxUserTime = 0;
std::list<User *> User::quitting_users;