/[svn.andrew.net.au]/usbspindownd/usbspindownd.py
ViewVC logotype

Diff of /usbspindownd/usbspindownd.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 34 by apollock, Thu Jan 31 19:03:28 2008 UTC revision 35 by apollock, Thu Jan 31 19:06:27 2008 UTC
# Line 149  def monitor_disks(config, options): Line 149  def monitor_disks(config, options):
149          if msio == config[disk]["last_msio"]:          if msio == config[disk]["last_msio"]:
150            debug(options, "Disk has been idle since last considered")            debug(options, "Disk has been idle since last considered")
151            now = int(time.time())            now = int(time.time())
152            if (now - config[disk]["timestamp"]) >= config[disk]["wait"]:            if (now - config[disk]["timestamp"]) >= int(config[disk]["wait"]):
153              debug(options, "Disk eligible for spinning down")              debug(options, "Disk eligible for spinning down")
154              # We can spin this disk down              # We can spin this disk down
155              if not config[disk]["spun_down"]:              if not config[disk]["spun_down"]:

Legend:
Removed from v.34  
changed lines
  Added in v.35

  ViewVC Help
Powered by ViewVC 1.1.22