]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Implement broken() so that kids do not have to.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 8 May 2008 20:15:25 +0000 (14:15 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 8 May 2008 20:15:25 +0000 (14:15 -0600)
src/adaptation/Service.cc
src/adaptation/Service.h

index 8d3f6ebef014d268b99a0e513e9a9140790ccd81..6f35d33e2512caf2106c1db73b2a5f3664abe7f5 100644 (file)
@@ -18,6 +18,11 @@ Adaptation::Service::finalize()
 {
 }
 
+bool Adaptation::Service::broken() const
+{
+    return probed() && !up();
+}
+
 Adaptation::Services &
 Adaptation::AllServices()
 {
index 9d6303ed384ec39468ccacfa057aab6c8d783057..15806dd3eaf91deb64c2a4511ef682167aece493 100644 (file)
@@ -30,7 +30,7 @@ public:
     virtual void invalidate() = 0;
 
     virtual bool probed() const = 0; // see comments above
-    virtual bool broken() const = 0; // see comments above
+    virtual bool broken() const;
     virtual bool up() const = 0; // see comments above
 
     virtual Initiate *makeXactLauncher(Initiator *, HttpMsg *virginHeader, HttpRequest *virginCause) = 0;