summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-09-03 15:17:57 +0100
committerRichard Hughes <richard@hughsie.com>2008-09-03 15:17:57 +0100
commit0f03775f7d66949cb4a9249a03b53458c4f31870 (patch)
treedd495c436ede0f16bf93c7718db5c3fb330222b5
parent1b1d9976b62fa40984fdf3603364739d9031fa4c (diff)
trivial: there are 101 entries, not 100
-rw-r--r--src/dkp-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dkp-device.c b/src/dkp-device.c
index 9e85107..e8cd44b 100644
--- a/src/dkp-device.c
+++ b/src/dkp-device.c
@@ -340,9 +340,9 @@ dkp_device_get_statistics (DkpDevice *device, const gchar *type, DBusGMethodInvo
goto out;
}
- /* always 100 items of data */
- if (array->len != 100) {
- error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "statistics invalid");
+ /* always 101 items of data */
+ if (array->len != 101) {
+ error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "statistics invalid as have %i items", array->len);
dbus_g_method_return_error (context, error);
goto out;
}