summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-20 10:31:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-20 10:31:56 +0000
commita10ae79f0ff7e8396c37141726c0925573ec0aa9 (patch)
treefae9a518d1993fd2fed5efb6cbb67f30817d65ff /src/commands
parent7721a4de678967c527c4887e036f7a93722296ed (diff)
We can finally have percent cpu in the stats z on windows now, same as it is on linux. The windows one surprisingly enough is more accurate than the linux one as posix gives no standard way of obtaining this. :-)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10181 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_stats.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp
index d270a5864..d952350ea 100644
--- a/src/commands/cmd_stats.cpp
+++ b/src/commands/cmd_stats.cpp
@@ -254,6 +254,7 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str
results.push_back(sn+" 249 "+user->nick+" :Total allocation: "+ConvToStr((MemCounters.WorkingSetSize + MemCounters.PagefileUsage) / 1024)+"K");
results.push_back(sn+" 249 "+user->nick+" :Pagefile usage: "+ConvToStr(MemCounters.PagefileUsage / 1024)+"K");
results.push_back(sn+" 249 "+user->nick+" :Page faults: "+ConvToStr(MemCounters.PageFaultCount));
+ results.push_back(sn+" 249 "+user->nick+" :CPU Usage: " + ConvToStr(getcpu()) + "%");
}
#endif
}