Update of /cvsroot/perfparse/_perfparse/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28012/modules
Modified Files:
storage_mysql.c
Log Message:
ctime is now a unix timestamp
Index: storage_mysql.c
===================================================================
RCS file: /cvsroot/perfparse/_perfparse/modules/storage_mysql.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** storage_mysql.c 20 Dec 2006 22:57:47 -0000 1.11
--- storage_mysql.c 1 Jun 2007 08:51:05 -0000 1.12
***************
*** 5,9 ****
* $Id$
*
! * Copyright (c) 2004 Ben Clewett
*
* License:
--- 5,9 ----
* $Id$
*
! * Copyright (c) 2004-2007 Ben Clewett, Florian Gleixner
*
* License:
***************
*** 660,664 ****
g_string_printf(s_SQL, "INSERT INTO perfdata_service_bin (metric_id, ctime, value, warn, critical, state) VALUES (%d",
iMetricID);
! g_string_append_printf(s_SQL, ", FROM_UNIXTIME(%ld), %s",
data->time,
getSafeD(perf->d[PERF_VALUE_VALUE]));
--- 660,664 ----
g_string_printf(s_SQL, "INSERT INTO perfdata_service_bin (metric_id, ctime, value, warn, critical, state) VALUES (%d",
iMetricID);
! g_string_append_printf(s_SQL, ", %ld, %s",
data->time,
getSafeD(perf->d[PERF_VALUE_VALUE]));
|