summaryrefslogtreecommitdiffstats
path: root/smartkitd.vala
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-07-01 13:19:41 +0200
committerLennart Poettering <lennart@poettering.net>2008-07-01 13:19:41 +0200
commitf8ab64249186f05685a47eac85593dce8c5d691d (patch)
tree28d760769a432401e7a26740e1cf6d678ab225d2 /smartkitd.vala
parent4d61d9204883e84e6328e92e0b50d7b047690321 (diff)
use millikelvin as unit, instead of kelvin for temperatures
Diffstat (limited to 'smartkitd.vala')
-rw-r--r--smartkitd.vala8
1 files changed, 5 insertions, 3 deletions
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.");
}