You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2016/08/22 20:07:14 UTC

[trafficserver] branch master updated: Fix "separator" spelling.

This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  11b5d6d   Fix "separator" spelling.
11b5d6d is described below

commit 11b5d6d45693f3bbf4b261d2cdee5428c2c58621
Author: James Peach <jp...@apache.org>
AuthorDate: Mon Aug 22 13:04:35 2016 -0700

    Fix "separator" spelling.
---
 cmd/traffic_top/stats.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cmd/traffic_top/stats.h b/cmd/traffic_top/stats.h
index 70e4202..2525ade 100644
--- a/cmd/traffic_top/stats.h
+++ b/cmd/traffic_top/stats.h
@@ -51,7 +51,7 @@ namespace constant
 {
 const char global[]    = "\"global\": {\n";
 const char start[]     = "\"proxy.process.";
-const char seperator[] = "\": \"";
+const char separator[] = "\": \"";
 const char end[]       = "\",\n";
 };
 
@@ -450,19 +450,19 @@ public:
     // find parts of the line
     while (1) {
       size_t start     = response.find(constant::start, pos);
-      size_t seperator = response.find(constant::seperator, pos);
+      size_t separator = response.find(constant::separator, pos);
       size_t end       = response.find(constant::end, pos);
 
-      if (start == string::npos || seperator == string::npos || end == string::npos)
+      if (start == string::npos || separator == string::npos || end == string::npos)
         return;
 
       // cout << constant::start << " " << start << endl;
-      // cout << constant::seperator << " " << seperator << endl;
+      // cout << constant::separator << " " << separator << endl;
       // cout << constant::end << " " << end << endl;
 
-      string key = response.substr(start + 1, seperator - start - 1);
+      string key = response.substr(start + 1, separator - start - 1);
       string value =
-        response.substr(seperator + sizeof(constant::seperator) - 1, end - seperator - sizeof(constant::seperator) + 1);
+        response.substr(separator + sizeof(constant::separator) - 1, end - separator - sizeof(constant::separator) + 1);
 
       (*_stats)[key] = value;
       // cout << "key " << key << " " << "value " << value << endl;

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].