From 8f9c862b01df6fbb34bc03f4cfd70a3438e451a0 Mon Sep 17 00:00:00 2001 From: om Date: Sun, 3 Jun 2007 09:27:38 +0000 Subject: 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 --- src/cmd_stats.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3