From bd93ea88a5ab4eb2781cb6afea3f1ad5d1fa9f42 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Wed, 21 Jul 2004 20:01:46 +0000 Subject: [PATCH] Added "J" to amx_version if compiled with JIT Changed memreport interval to 5 minutes --- amxmodx/meta_api.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index 9f1da815..ec660311 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -92,7 +92,7 @@ float g_next_memreport_time; unsigned int g_memreport_count; String g_memreport_dir; bool g_memreport_enabled; -#define MEMREPORT_INTERVAL 1200.0f /* 20 mins */ +#define MEMREPORT_INTERVAL 300.0f /* 5 mins */ #endif // MEMORY_TEST hudtextparms_t g_hudset; @@ -236,7 +236,11 @@ int C_Spawn( edict_t *pent ) { attachModules(); int loaded = countModules(CountModules_Running); // Call after attachModules so all modules don't have pending stat // Set some info about amx version and modules - CVAR_SET_STRING(init_amxmodx_version.name, AMX_VERSION); + CVAR_SET_STRING(init_amxmodx_version.name, AMX_VERSION +#ifdef JIT + "J" +#endif + ); char buffer[32]; sprintf(buffer, "%d", loaded); CVAR_SET_STRING(init_amxmodx_modules.name, buffer);