accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivakegg <...@git.apache.org>
Subject [GitHub] accumulo pull request #271: ACCUMULO-4655 Added a Response Time column to th...
Date Tue, 20 Jun 2017 18:16:16 GMT
Github user ivakegg commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/271#discussion_r123054651
  
    --- Diff: server/monitor/src/main/java/org/apache/accumulo/monitor/servlets/TServersServlet.java
---
    @@ -314,13 +314,22 @@ static void doTserverList(HttpServletRequest req, StringBuilder
sb, List<TabletS
         long now = System.currentTimeMillis();
     
         double avgLastContact = 0.;
    +    double avgResponseTime = 0.;
    +    int count = 0;
         for (TabletServerStatus status : tservers) {
    +      count++;
           avgLastContact += (now - status.lastContact);
    +      avgResponseTime += status.responseTime;
    --- End diff --
    
    I was going with the mechanism already used for the lastContact time.  I will think on
this.....


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message