summaryrefslogtreecommitdiff
path: root/sample/drb/dbiff.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/drb/dbiff.rb')
-rw-r--r--sample/drb/dbiff.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/sample/drb/dbiff.rb b/sample/drb/dbiff.rb
index b50edc0..290eb1d 100644
--- a/sample/drb/dbiff.rb
+++ b/sample/drb/dbiff.rb
@@ -19,18 +19,18 @@ class Biff
last = Time.now
while true
begin
- sleep(@interval)
- current = File::mtime(@filename)
- if current > last
- changed
- begin
- notify_observers(@filename, current)
- rescue Error
- end
- last = current
- end
+ sleep(@interval)
+ current = File::mtime(@filename)
+ if current > last
+ changed
+ begin
+ notify_observers(@filename, current)
+ rescue Error
+ end
+ last = current
+ end
rescue
- next
+ next
end
end
end