About get_systime
How it is work?
What really do this native?Here : http://www.amxmodx.org/funcwiki.php?...time&go=search , I saw that count the seconds from 1 January 1970...Then this expression it's wrong for me: Code:
nvault_prune(gVaultHandle, 0, get_systime() - (xpSaveDays * 24 * 3600))I think that the correct expression is Code:
nvault_prune(gVaultHandle, 0, get_systime() + (xpSaveDays * 24 * 3600)) |
Re: About get_systime
get_systime will return the current Unix Epoch value. You are then subtracting a week, so it is expected to get a value in the past. Based on what you have provided, it looks like it is trying to remove old data that hasn't been updated in a week.
|
Re: About get_systime
Let me exaplin a bit better...
xpSaveDays it's the pointer on cvar sh_xpsavedays... Code:
nvault_prune(gVaultHandle, 0, get_systime() - (xpSaveDays * 24 * 3600))Code:
nvault_prune(gVaultHandle, 0, get_systime() - (7 * 24 * 3600))But I still not understand, what value return get_systime?The seconds elapsed since 1970?This mean that the value of get_systime() grow every seconds. |
Re: About get_systime
Quote:
Quote:
Quote:
Quote:
|
Re: About get_systime
When you save something on nvault, it records the time too
and when get_systime()-(time) is bigger than that time(recorded on save), it deletes the line Do you understand now? |
Re: About get_systime
Yea, thanks :)
|
| All times are GMT -4. The time now is 18:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.