05.09.2012, 14:16
I recently discovered that something is wrong with tickcounts on my server, so I made a debug command:
and used it on homehosted (Win 7) and normal (Linux, at Volt) server.
Results on Win server were kinda normal (~1112 ticks), but on Linux it was showing ~150 ticks (140, 160, 120, etc, very inconsistent and always divisible by 10), raising with playercount (up to ~560 ticks) - definitely not normal value. Changing granularity didn't help at all.
I thought it's hosts' fault but they claim it's something with Linux build of SA:MP server. Could someone tell me what could be the problem here?
Код:
cmd(debug,playerid,params[]) { gPlayerData[playerid][ACLastTick] = tickcount(); SetTimerEx("CheckTicks",1000,0,"i", playerid); return 1; } forward CheckTicks(playerid); public CheckTicks(playerid) { format(gSString, sizeof(gSString), "%i", tickcount() - gPlayerData[playerid][ACLastTick]); SendClientMessage(playerid, COLOR_YELLOW, gSString); }
Results on Win server were kinda normal (~1112 ticks), but on Linux it was showing ~150 ticks (140, 160, 120, etc, very inconsistent and always divisible by 10), raising with playercount (up to ~560 ticks) - definitely not normal value. Changing granularity didn't help at all.
I thought it's hosts' fault but they claim it's something with Linux build of SA:MP server. Could someone tell me what could be the problem here?