summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-08-26 16:53:16 +0100
committerRichard Hughes <richard@hughsie.com>2008-08-26 16:53:16 +0100
commit57ae3ac178d8fc961357328f09bade6b1722aede (patch)
tree2cd7d036bff71524047a4ddbfebbc13488db5e7a /src
parentb53b7dadcf8856b5a4c3331e85207f7c0a2417e0 (diff)
trivial fixup
Diffstat (limited to 'src')
-rw-r--r--src/dkp-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dkp-device.c b/src/dkp-device.c
index 3dc27d8..6008ba9 100644
--- a/src/dkp-device.c
+++ b/src/dkp-device.c
@@ -380,8 +380,8 @@ dkp_device_get_history (DkpDevice *device, const gchar *type, guint timespan, DB
g_return_val_if_fail (DKP_IS_DEVICE (device), FALSE);
/* doesn't even try to support this */
- if (klass->get_stats == NULL) {
- error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "device does not support getting stats");
+ if (klass->get_history == NULL) {
+ error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "device does not support getting history");
dbus_g_method_return_error (context, error);
goto out;
}