Bases error reporting on 'state' rather than 'hits'.
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 30 Jun 2010 10:57:30 +0000 (06:57 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Wed, 30 Jun 2010 10:57:30 +0000 (06:57 -0400)
js/pz2.js

index 7948ea0..3665c4e 100644 (file)
--- a/js/pz2.js
+++ b/js/pz2.js
@@ -637,6 +637,13 @@ pz2.prototype =
                                 bytarget[i][nodeName] = nodeText;
                             }
                         }
+                        if (bytarget[i]["state"]=="Client_Disconnected") {
+                          bytarget[i]["hits"] = "Error";
+                        } else if (bytarget[i]["state"]=="Client_Error") {
+                          bytarget[i]["hits"] = "Error";                          
+                        } else if (bytarget[i]["state"]=="Client_Working") {
+                          bytarget[i]["hits"] = "...";
+                        }
                     }
                     
                     context.bytargetCounter++;