santa12 4 Posted October 6, 2019 Share Posted October 6, 2019 Hello ! my file is always filled with such commands, does anyone know what this is about? How to fix / disable it? File PTS in the db QUERY: MAIN[5] ASYNC[0] ITEM:0 QUERY: MAIN[8] ASYNC[0] ITEM:0 QUERY: MAIN[2] ASYNC[1] ITEM:0 Link to comment Share on other sites More sharing options...
Premium Jira 458 Posted October 7, 2019 Premium Share Posted October 7, 2019 ClientManager.cpp -> int CClientManager::Process() Link to comment Share on other sites More sharing options...
santa12 4 Posted October 7, 2019 Author Share Posted October 7, 2019 Good ? now I can see generally in the past I removed the code in it but I ask if I did the right thing and did not remove any function int CClientManager::Process() { int pulses; if (!(pulses = thecore_idle())) return 0; while (pulses--) { ++thecore_heart->pulse; /* //30şĐ¸¶´Ů şŻ°ć if (((thecore_pulse() % (60 * 30 * 10)) == 0)) { g_iPlayerCacheFlushSeconds = MAX(60, rand() % 180); g_iItemCacheFlushSeconds = MAX(60, rand() % 180); sys_log(0, "[SAVE_TIME]Change saving time item %d player %d", g_iPlayerCacheFlushSeconds, g_iItemCacheFlushSeconds); } */ if (!(thecore_heart->pulse % thecore_heart->passes_per_sec)) { if (g_test_server) { if (!(thecore_heart->pulse % thecore_heart->passes_per_sec * 10)) { /*pt_log("[%9d] return %d/%d/%d/%d async %d/%d/%d/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery(SQL_PLAYER), CDBManager::instance().CountReturnResult(SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished(SQL_PLAYER), CDBManager::instance().CountReturnCopiedQuery(SQL_PLAYER), CDBManager::instance().CountAsyncQuery(SQL_PLAYER), CDBManager::instance().CountAsyncResult(SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished(SQL_PLAYER), CDBManager::instance().CountAsyncCopiedQuery(SQL_PLAYER)); if ((thecore_heart->pulse % 50) == 0) sys_log(0, "[%9d] return %d/%d/%d async %d/%d/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery(SQL_PLAYER), CDBManager::instance().CountReturnResult(SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished(SQL_PLAYER), CDBManager::instance().CountAsyncQuery(SQL_PLAYER), CDBManager::instance().CountAsyncResult(SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished(SQL_PLAYER));*/ } } else { /*pt_log("[%9d] return %d/%d/%d/%d async %d/%d/%d%/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery(SQL_PLAYER), CDBManager::instance().CountReturnResult(SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished(SQL_PLAYER), CDBManager::instance().CountReturnCopiedQuery(SQL_PLAYER), CDBManager::instance().CountAsyncQuery(SQL_PLAYER), CDBManager::instance().CountAsyncResult(SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished(SQL_PLAYER), CDBManager::instance().CountAsyncCopiedQuery(SQL_PLAYER)); if ((thecore_heart->pulse % 50) == 0) sys_log(0, "[%9d] return %d/%d/%d async %d/%d/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery(SQL_PLAYER), CDBManager::instance().CountReturnResult(SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished(SQL_PLAYER), CDBManager::instance().CountAsyncQuery(SQL_PLAYER), CDBManager::instance().CountAsyncResult(SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished(SQL_PLAYER));*/ } CDBManager::instance().ResetCounter(); DWORD dwCount = CClientManager::instance().GetUserCount(); g_dwUsageAvg += dwCount; g_dwUsageMax = MAX(g_dwUsageMax, dwCount); memset(&thecore_profiler[0], 0, sizeof(thecore_profiler)); if (!(thecore_heart->pulse % (thecore_heart->passes_per_sec * 3600))) UsageLog(); m_iCacheFlushCount = 0; //ÇĂ·ąŔĚľî ÇĂ·Ż˝¬ UpdatePlayerCache(); //ľĆŔĚĹŰ ÇĂ·Ż˝¬ UpdateItemCache(); //·Î±×ľĆżô˝Ă Ăł¸®- Äł˝¬ĽÂ ÇĂ·Ż˝¬ UpdateLogoutPlayer(); // MYSHOP_PRICE_LIST UpdateItemPriceListCache(); // END_OF_MYSHOP_PRICE_LIST #ifdef ENABLE_OFFLINE_SHOP UpdateOfflineShopCache(); #endif CGuildManager::instance().Update(); CPrivManager::instance().Update(); marriage::CManager::instance().Update(); } if (!(thecore_heart->pulse % (thecore_heart->passes_per_sec * 5))) { ItemAwardManager::instance().RequestLoad(); } if (!(thecore_heart->pulse % (thecore_heart->passes_per_sec * 10))) { /* char buf[4096 + 1]; int len itertype(g_query_info.m_map_info) it; ///////////////////////////////////////////////////////////////// buf[0] = '\0'; len = 0; it = g_query_info.m_map_info.begin(); int count = 0; while (it != g_query_info.m_map_info.end()) { len += snprintf(buf + len, sizeof(buf) - len, "%2d %3d\n", it->first, it->second); count += it->second; it++; } pt_log("QUERY:\n%s-------------------- MAX : %d\n", buf, count); g_query_info.Reset(); pt_log("QUERY: MAIN[%d] ASYNC[%d]", g_query_count[0], g_query_count[1]);*/ g_query_count[0] = 0; g_query_count[1] = 0; ///////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////// /* buf[0] = '\0'; len = 0; it = g_item_info.m_map_info.begin(); count = 0; while (it != g_item_info.m_map_info.end()) { len += snprintf(buf + len, sizeof(buf) - len, "%5d %3d\n", it->first, it->second); count += it->second; it++; } pt_log("ITEM:\n%s-------------------- MAX : %d\n", buf, count); g_item_info.Reset(); pt_log("ITEM:%d\n", g_item_count);*/ g_item_count = 0; ///////////////////////////////////////////////////////////////// } if (!(thecore_heart->pulse % (thecore_heart->passes_per_sec * 60))) // 60ĂĘżˇ ÇŃąř { // ŔŻ´ĎĹ© ľĆŔĚĹŰŔ» Ŕ§ÇŃ ˝Ă°ŁŔ» ş¸ł˝´Ů. CClientManager::instance().SendTime(); } if (!(thecore_heart->pulse % (thecore_heart->passes_per_sec * 3600))) // ÇѽðŁżˇ ÇŃąř { CMoneyLog::instance().Save(); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now