From: Alex Rousskov Date: Thu, 28 Oct 2010 20:01:27 +0000 (-0600) Subject: Use the new Cache Manager registration API for the newly added /dev/poll code. X-Git-Tag: take1~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8af645e79e750108a04bfb645798c7c7dbf8ca45;p=thirdparty%2Fsquid.git Use the new Cache Manager registration API for the newly added /dev/poll code. --- diff --git a/src/comm_devpoll.cc b/src/comm_devpoll.cc index 25cb3630b6..c42ecea31f 100644 --- a/src/comm_devpoll.cc +++ b/src/comm_devpoll.cc @@ -55,9 +55,9 @@ #if USE_DEVPOLL -#include "CacheManager.h" #include "Store.h" #include "fde.h" +#include "mgr/Registration.h" #include "SquidTime.h" #if HAVE_SYS_DEVPOLL_H @@ -181,8 +181,7 @@ static void commIncomingStats(StoreEntry *sentry) static void commDevPollRegisterWithCacheManager(void) { - CacheManager::GetInstance()-> - registerAction( + Mgr::RegisterAction( "comm_devpoll_incoming", "comm_incoming() stats", commIncomingStats,