From f8ab64249186f05685a47eac85593dce8c5d691d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 1 Jul 2008 13:19:41 +0200 Subject: use millikelvin as unit, instead of kelvin for temperatures --- smartkitd.vala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'smartkitd.vala') diff --git a/smartkitd.vala b/smartkitd.vala index 5c2edf5..7e60403 100644 --- a/smartkitd.vala +++ b/smartkitd.vala @@ -84,6 +84,8 @@ public interface DiskAPI { public abstract uint getShortTestPollingMinutes() throws Error; public abstract uint getExtendedTestPollingMinutes() throws Error; public abstract uint getConveyanceTestPollingMinutes() throws Error; + +/* public abstract DBus.ObjectPath[] getAttributes() throws Error; */ } [DBus (name = "net.poettering.SmartKit.Manager")] @@ -131,7 +133,7 @@ public class Attribute : GLib.Object, AttributeAPI { public void set(SmartAttributeParsedData a) { id = a.id; - name = "%s".printf(a.name); + name = a.name; pretty_unit = a.pretty_unit; threshold = a.threshold; threshold_valid = a.threshold_valid; @@ -167,8 +169,8 @@ public class Attribute : GLib.Object, AttributeAPI { return "none"; case SmartAttributeUnit.MSECONDS: return "mseconds"; - case SmartAttributeUnit.KELVIN: - return "kelvin"; + case SmartAttributeUnit.MKELVIN: + return "mkelvin"; default: throw new Error.UNKNOWN_UNIT("Unit unknown."); } -- cgit