summaryrefslogtreecommitdiff
path: root/libdevkit-power
diff options
context:
space:
mode:
Diffstat (limited to 'libdevkit-power')
-rw-r--r--libdevkit-power/dkp-wakeups-obj.c4
-rw-r--r--libdevkit-power/dkp-wakeups-obj.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/libdevkit-power/dkp-wakeups-obj.c b/libdevkit-power/dkp-wakeups-obj.c
index d658353..fcbaa94 100644
--- a/libdevkit-power/dkp-wakeups-obj.c
+++ b/libdevkit-power/dkp-wakeups-obj.c
@@ -35,7 +35,7 @@ dkp_wakeups_obj_clear_internal (DkpWakeupsObj *obj)
{
obj->id = 0;
obj->old = 0;
- obj->value = 0;
+ obj->value = 0.0f;
obj->is_userspace = FALSE;
obj->cmdline = NULL;
obj->details = NULL;
@@ -72,7 +72,7 @@ dkp_wakeups_obj_equal (const DkpWakeupsObj *obj1, const DkpWakeupsObj *obj2)
gboolean
dkp_wakeups_obj_print (const DkpWakeupsObj *obj)
{
- g_print ("userspace:%i id:%i, interrupts:%i, cmdline:%s, details:%s\n", obj->is_userspace, obj->id, obj->value, obj->cmdline, obj->details);
+ g_print ("userspace:%i id:%i, interrupts:%.1f, cmdline:%s, details:%s\n", obj->is_userspace, obj->id, obj->value, obj->cmdline, obj->details);
return TRUE;
}
diff --git a/libdevkit-power/dkp-wakeups-obj.h b/libdevkit-power/dkp-wakeups-obj.h
index c9e844c..7939cfd 100644
--- a/libdevkit-power/dkp-wakeups-obj.h
+++ b/libdevkit-power/dkp-wakeups-obj.h
@@ -31,7 +31,7 @@ typedef struct
gboolean is_userspace;
guint id;
guint old;
- guint value;
+ gfloat value;
gchar *cmdline;
gchar *details;
} DkpWakeupsObj;