/* This just gets the status. */
int status = parse_int_from_file(hdaps->sysfs_file);
+ /* The value in the sysfs_file represents the number of milliseconds
+ * that the drive heads will be parked. Of course, this will
+ * generally count down, and appear different each time we poll.
+ *
+ * So, to determine whether or not HDAPS has gone from "on"
+ * to "off," we treat all values greater than zero the same.
+ */
+ if (status > 0) {
+ status = HDAPS_ON;
+ }
+
if (status != hdaps->previous_status) {
/* And we only update the icon if we need to. */
hdaps_set_icon(hdaps, status);