summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-03 09:27:38 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-03 09:27:38 +0000
commit8f9c862b01df6fbb34bc03f4cfd70a3438e451a0 (patch)
tree980044e9d0365b2ae81c923f9b47f9bb629d9e21
parent3c19bd7b6603a26cf365a1a5204dfbc7adc34d98 (diff)
Possible fix for compile issue on some distributions. Then again there was probably a reason we weren't doing this before...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7221 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_stats.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd_stats.cpp b/src/cmd_stats.cpp
index 40c0d4d7e..3f27ad813 100644
--- a/src/cmd_stats.cpp
+++ b/src/cmd_stats.cpp
@@ -201,7 +201,8 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, userrec* user,
results.push_back(sn+" 249 "+user->nick+" :ClassFactories(VECTOR) "+ConvToStr(ServerInstance->factory.size())+" ("+ConvToStr(ServerInstance->factory.size()*sizeof(ircd_module))+" bytes)");
#ifndef WIN32
- if (!getrusage(0,&R)) /* RUSAGE_SELF */
+ /* Not sure why we were doing '0' with a RUSAGE_SELF comment rather than just using RUSAGE_SELF -- Om */
+ if (!getrusage(RUSAGE_SELF,&R)) /* RUSAGE_SELF */
{
results.push_back(sn+" 249 "+user->nick+" :Total allocation: "+ConvToStr(R.ru_maxrss)+"K");
results.push_back(sn+" 249 "+user->nick+" :Signals: "+ConvToStr(R.ru_nsignals));