29 Aug
2011
29 Aug
'11
12:08 p.m.
Thanks, applied to 3.4. On Tue, 2011-08-23 at 14:58 +0200, Gergely Nagy wrote:
The C_* family of timestamp macros work very similarly to R_ (received) and S_ (stamp), except C_ uses the current system time as of the macro expansion.
The patch below uses cached_g_current_time() for performance reasons, but in case the minor caching is undesired, it's easy to convert to something else.
Signed-off-by: Gergely Nagy <algernon@balabit.hu> --- lib/templates.c | 39 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 37 insertions(+), 2 deletions(-)
-- Bazsi