mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-17 09:14:34 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
5
deps/acelite/ace/Profile_Timer.cpp
vendored
5
deps/acelite/ace/Profile_Timer.cpp
vendored
@@ -17,6 +17,9 @@
|
||||
#if (defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE)) && !defined (ACE_WIN32)
|
||||
|
||||
#include "ace/OS_NS_stdio.h"
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
# include "ace/Malloc_Base.h"
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
@@ -43,7 +46,7 @@ ACE_Profile_Timer::ACE_Profile_Timer (void)
|
||||
# if defined (ACE_HAS_PRUSAGE_T)
|
||||
ACE_OS::memset (&this->last_usage_, 0, sizeof this->last_usage_);
|
||||
char buf[20];
|
||||
ACE_OS::sprintf (buf, "/proc/%d", static_cast<int> (ACE_OS::getpid ()));
|
||||
ACE_OS::sprintf (buf, 20, "/proc/%d", static_cast<int> (ACE_OS::getpid ()));
|
||||
|
||||
this->proc_handle_ = ACE_OS::open (buf, O_RDONLY, 0);
|
||||
if (this->proc_handle_ == -1)
|
||||
|
||||
Reference in New Issue
Block a user