/[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 31 by apollock, Thu Jan 31 02:51:57 2008 UTC revision 32 by apollock, Thu Jan 31 04:45:24 2008 UTC
# Line 142  def monitor_disks(config, options): Line 142  def monitor_disks(config, options):
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)" % (now - config[disk]["timestamp"], 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.31  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.22