fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1--- hddtemp-0.3-beta15/src/sata.c 2012-07-01 16:35:01.681708074 +0200
2+++ hddtemp-0.3-beta15/src/sata.c 2012-07-01 16:33:58.172109699 +0200
3@@ -125,6 +125,17 @@
4 dsk->fd = -1;
5 return GETTEMP_NOSENSOR;
6 }
7+
8+ switch(ata_get_powermode(dsk->fd)) {
9+ case PWM_STANDBY:
10+ case PWM_SLEEPING:
11+ if (!wakeup)
12+ return GETTEMP_DRIVE_SLEEP;
13+ case PWM_UNKNOWN:
14+ case PWM_ACTIVE: /* active or idle */
15+ default:
16+ break;
17+ }
18
19 /* get SMART values */
20 if(sata_enable_smart(dsk->fd) != 0) {