da4ec499a5
collectd gathers statistics about the system it is running on and stores this information. Those statistics can then be used to find current performance bottlenecks (i.e. performance analysis) and predict future system load (i.e. capacity planning). Or if you just want pretty graphs of your private server and are fed up with some homegrown solution you're at the right place, too ;). Reworked by bernd@ to use MULTI_PACKAGES instead of FLAVORS, thanks! With feedback from Nico Szalay. ok bernd@
94 lines
3.9 KiB
Plaintext
94 lines
3.9 KiB
Plaintext
$OpenBSD: patch-src_utils_db_query_c,v 1.1.1.1 2010/06/23 18:04:26 landry Exp $
|
|
--- src/utils_db_query.c.orig Sat May 1 11:15:45 2010
|
|
+++ src/utils_db_query.c Sat Jun 19 11:22:07 2010
|
|
@@ -193,7 +193,7 @@ static int udb_config_set_uint (unsigned int *ret_valu
|
|
/*
|
|
* Legacy result private functions
|
|
*/
|
|
-static void udb_legacy_result_finish_result (const udb_result_t const *r, /* {{{ */
|
|
+static void udb_legacy_result_finish_result (const udb_result_t *r, /* {{{ */
|
|
udb_result_preparation_area_t *prep_area)
|
|
{
|
|
if ((r == NULL) || (prep_area))
|
|
@@ -207,7 +207,7 @@ static void udb_legacy_result_finish_result (const udb
|
|
static int udb_legacy_result_handle_result (udb_result_t *r, /* {{{ */
|
|
udb_query_preparation_area_t *q_area,
|
|
udb_result_preparation_area_t *r_area,
|
|
- const udb_query_t const *q, char **column_values)
|
|
+ const udb_query_t *q, char **column_values)
|
|
{
|
|
value_list_t vl = VALUE_LIST_INIT;
|
|
value_t value;
|
|
@@ -247,7 +247,7 @@ static int udb_legacy_result_handle_result (udb_result
|
|
return (0);
|
|
} /* }}} int udb_legacy_result_handle_result */
|
|
|
|
-static int udb_legacy_result_prepare_result (const udb_result_t const *r, /* {{{ */
|
|
+static int udb_legacy_result_prepare_result (const udb_result_t *r, /* {{{ */
|
|
udb_result_preparation_area_t *prep_area,
|
|
char **column_names, size_t column_num)
|
|
{
|
|
@@ -362,7 +362,7 @@ static int udb_legacy_result_create (const char *query
|
|
*/
|
|
static int udb_result_submit (udb_result_t *r, /* {{{ */
|
|
udb_result_preparation_area_t *r_area,
|
|
- const udb_query_t const *q, udb_query_preparation_area_t *q_area)
|
|
+ const udb_query_t *q, udb_query_preparation_area_t *q_area)
|
|
{
|
|
value_list_t vl = VALUE_LIST_INIT;
|
|
size_t i;
|
|
@@ -438,7 +438,7 @@ static int udb_result_submit (udb_result_t *r, /* {{{
|
|
return (0);
|
|
} /* }}} void udb_result_submit */
|
|
|
|
-static void udb_result_finish_result (const udb_result_t const *r, /* {{{ */
|
|
+static void udb_result_finish_result (const udb_result_t *r, /* {{{ */
|
|
udb_result_preparation_area_t *prep_area)
|
|
{
|
|
if ((r == NULL) || (prep_area == NULL))
|
|
@@ -462,7 +462,7 @@ static void udb_result_finish_result (const udb_result
|
|
static int udb_result_handle_result (udb_result_t *r, /* {{{ */
|
|
udb_query_preparation_area_t *q_area,
|
|
udb_result_preparation_area_t *r_area,
|
|
- const udb_query_t const *q, char **column_values)
|
|
+ const udb_query_t *q, char **column_values)
|
|
{
|
|
size_t i;
|
|
|
|
@@ -483,7 +483,7 @@ static int udb_result_handle_result (udb_result_t *r,
|
|
return udb_result_submit (r, r_area, q, q_area);
|
|
} /* }}} int udb_result_handle_result */
|
|
|
|
-static int udb_result_prepare_result (const udb_result_t const *r, /* {{{ */
|
|
+static int udb_result_prepare_result (const udb_result_t *r, /* {{{ */
|
|
udb_result_preparation_area_t *prep_area,
|
|
char **column_names, size_t column_num)
|
|
{
|
|
@@ -1065,7 +1065,7 @@ int udb_query_check_version (udb_query_t *q, unsigned
|
|
return (1);
|
|
} /* }}} int udb_query_check_version */
|
|
|
|
-void udb_query_finish_result (const udb_query_t const *q, /* {{{ */
|
|
+void udb_query_finish_result (const udb_query_t *q, /* {{{ */
|
|
udb_query_preparation_area_t *prep_area)
|
|
{
|
|
udb_result_preparation_area_t *r_area;
|
|
@@ -1091,7 +1091,7 @@ void udb_query_finish_result (const udb_query_t const
|
|
}
|
|
} /* }}} void udb_query_finish_result */
|
|
|
|
-int udb_query_handle_result (const udb_query_t const *q, /* {{{ */
|
|
+int udb_query_handle_result (const udb_query_t *q, /* {{{ */
|
|
udb_query_preparation_area_t *prep_area, char **column_values)
|
|
{
|
|
udb_result_preparation_area_t *r_area;
|
|
@@ -1144,7 +1144,7 @@ int udb_query_handle_result (const udb_query_t const *
|
|
return (0);
|
|
} /* }}} int udb_query_handle_result */
|
|
|
|
-int udb_query_prepare_result (const udb_query_t const *q, /* {{{ */
|
|
+int udb_query_prepare_result (const udb_query_t *q, /* {{{ */
|
|
udb_query_preparation_area_t *prep_area,
|
|
const char *host, const char *plugin, const char *db_name,
|
|
char **column_names, size_t column_num, int interval)
|