/[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 30 by apollock, Thu Jan 31 02:21:39 2008 UTC revision 32 by apollock, Thu Jan 31 04:45:24 2008 UTC
# Line 141  def monitor_disks(config, options): Line 141  def monitor_disks(config, options):
141                debug(options, "Disk already spun down")                debug(options, "Disk already spun down")
142            else:            else:
143              # This disk is ineligible for spinning down at this time              # This disk is ineligible for spinning down at this time
144              debug(options, "Disk idle for %s seconds, but not for long enough (%s)" % (config[disk]["timestamp"] - now, config[disk]["wait"]))              debug(options, "Disk idle for %s seconds, but not for long enough (%s)" % (now - config[disk]["timestamp"], config[disk]["wait"]))
145              config[disk]["timestamp"] = int(time.time())              #config[disk]["timestamp"] = int(time.time())
146          else:          else:
147            debug(options, "Disk not idle (old msio: %s, current msio: %s)" % (config[disk]["last_msio"], msio))            debug(options, "Disk not idle (old msio: %s, current msio: %s)" % (config[disk]["last_msio"], msio))
148            config[disk]["last_msio"] = msio            config[disk]["last_msio"] = msio

Legend:
Removed from v.30  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.22