diff options
| author | 2024-08-27 14:09:21 +0100 | |
|---|---|---|
| committer | 2024-08-27 14:09:21 +0100 | |
| commit | a5fc0da690ea62c3a76ca2cceaa2ab344a93fce3 (patch) | |
| tree | d0c81a7700ac184b50417f146204dfbcda502811 /modules/core | |
| parent | Merge branch 'insp4' into master. (diff) | |
Fix the case of some InspIRCd class member variables.
Diffstat (limited to 'modules/core')
| -rw-r--r-- | modules/core/core_info/core_info.cpp | 2 | ||||
| -rw-r--r-- | modules/core/core_stats.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/core/core_info/core_info.cpp b/modules/core/core_info/core_info.cpp index 1f4a7c86a..61ef2f477 100644 --- a/modules/core/core_info/core_info.cpp +++ b/modules/core/core_info/core_info.cpp @@ -173,7 +173,7 @@ public: { user->WriteNumeric(RPL_WELCOME, FMT::format("Welcome to the {} IRC Network {}", ServerInstance->Config->Network, user->GetRealMask())); user->WriteNumeric(RPL_YOURHOST, FMT::format("Your host is {}, running version {}", ServerInstance->Config->GetServerName(), INSPIRCD_BRANCH)); - user->WriteNumeric(RPL_CREATED, Time::ToString(ServerInstance->startup_time, "This server was created %H:%M:%S %b %d %Y")); + user->WriteNumeric(RPL_CREATED, Time::ToString(ServerInstance->StartTime, "This server was created %H:%M:%S %b %d %Y")); user->WriteNumeric(numeric004); isupport.SendTo(user); diff --git a/modules/core/core_stats.cpp b/modules/core/core_stats.cpp index 0f3a40805..1a801ad55 100644 --- a/modules/core/core_stats.cpp +++ b/modules/core/core_stats.cpp @@ -128,7 +128,7 @@ void CommandStats::DoStats(Stats::Context& stats) /* stats p (show listening ports) */ case 'p': { - for (const auto* ls : ServerInstance->ports) + for (const auto* ls : ServerInstance->Ports) { std::stringstream portentry; @@ -284,7 +284,7 @@ void CommandStats::DoStats(Stats::Context& stats) stats.AddRow(249, FMT::format("CPU Use (now): {:03.5}%", per)); - n_elapsed = ServerInstance->Time() - ServerInstance->startup_time; + n_elapsed = ServerInstance->Time() - ServerInstance->StartTime; n_eaten = (float)R.ru_utime.tv_sec + R.ru_utime.tv_usec / 100000.0; per = (n_eaten / n_elapsed) * 100; @@ -315,7 +315,7 @@ void CommandStats::DoStats(Stats::Context& stats) stats.AddRow(249, FMT::format("CPU Use (now): {:03.5}%", per)); - n_elapsed = ServerInstance->Time() - ServerInstance->startup_time; + n_elapsed = ServerInstance->Time() - ServerInstance->StartTime; n_eaten = (double)(( (uint64_t)(KernelTime.dwHighDateTime) << 32 ) + (uint64_t)(KernelTime.dwLowDateTime))/100000; per = (n_eaten / n_elapsed); @@ -346,7 +346,7 @@ void CommandStats::DoStats(Stats::Context& stats) /* stats u (show server uptime) */ case 'u': { - unsigned int up = static_cast<unsigned int>(ServerInstance->Time() - ServerInstance->startup_time); + unsigned int up = static_cast<unsigned int>(ServerInstance->Time() - ServerInstance->StartTime); stats.AddRow(242, FMT::format("Server up {} days, {:02}:{:02}:{:02}", up / 86400, (up / 3600) % 24, (up / 60) % 60, up % 60)); } |
