about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/upr/status.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/upr/status.rb b/lib/upr/status.rb
index b84357e..e3f4024 100644
--- a/lib/upr/status.rb
+++ b/lib/upr/status.rb
@@ -2,5 +2,9 @@ module Upr
 
   # this is what we store in the Moneta-backed monitor
   class Status < Struct.new(:seen, :length)
+
+    def error?
+      seen == -1
+    end
   end
 end