diff options
Diffstat (limited to 'cpufreq/src/cpufreq-monitor-libcpufreq.c')
-rw-r--r-- | cpufreq/src/cpufreq-monitor-libcpufreq.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c index d61349e0..cd0d3e53 100644 --- a/cpufreq/src/cpufreq-monitor-libcpufreq.c +++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c @@ -62,10 +62,12 @@ cpufreq_monitor_libcpufreq_constructor (GType type, gulong max_freq, min_freq; guint cpu; - object = G_OBJECT_CLASS ( - cpufreq_monitor_libcpufreq_parent_class)->constructor (type, - n_construct_properties, - construct_params); + object = + G_OBJECT_CLASS (cpufreq_monitor_libcpufreq_parent_class) + ->constructor (type, + n_construct_properties, + construct_params); + g_object_get (G_OBJECT (object), "cpu", &cpu, NULL); |