/[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 31 by apollock, Thu Jan 31 02:51:57 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))

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

  ViewVC Help
Powered by ViewVC 1.1.22