diff --git a/src/tape.c b/src/tape.c
index 32b42965c55d5e31ca6a5e53f54554cd0842aa54..52da2bc69db465a6e99bf97e529f43c56a0cd5c8 100644 (file)
--- a/src/tape.c
+++ b/src/tape.c
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
static void tape_submit (const char *plugin_instance,
const char *type,
- counter_t read, counter_t write)
+ derive_t read, derive_t write)
{
value_t values[2];
value_list_t vl = VALUE_LIST_INIT;
- values[0].counter = read;
- values[1].counter = write;
+ values[0].derive = read;
+ values[1].derive = write;
vl.values = values;
vl.values_len = 2;
# error "kstat_io_t does not have the required members"
#endif
static kstat_io_t kio;
- int i;
if (kc == NULL)
return (-1);
if (numtape <= 0)
return (-1);
- for (i = 0; i < numtape; i++)
+ for (int i = 0; i < numtape; i++)
{
if (kstat_read (kc, ksp[i], &kio) == -1)
continue;