Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 231e57bbd -> f047fd52c


[TC-136] Spec file updates and removed commented cruft from code.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0c2fa833
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0c2fa833
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0c2fa833

Branch: refs/heads/master
Commit: 0c2fa833246708f3ff7418e73ac8cf41e56453ba
Parents: 5a6fe0e
Author: Jeff Elsloo <jeffrey_els...@cable.comcast.com>
Authored: Thu Feb 9 11:55:47 2017 -0700
Committer: smalenfa <smalenf...@apache.org>
Committed: Thu Feb 16 15:38:25 2017 -0500

----------------------------------------------------------------------
 .../plugins/astats_over_http/astats_over_http.c | 23 --------------------
 .../astats_over_http/astats_over_http.spec      |  6 ++---
 2 files changed, 3 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0c2fa833/traffic_server/plugins/astats_over_http/astats_over_http.c
----------------------------------------------------------------------
diff --git a/traffic_server/plugins/astats_over_http/astats_over_http.c 
b/traffic_server/plugins/astats_over_http/astats_over_http.c
index 3b792bb..005e49b 100644
--- a/traffic_server/plugins/astats_over_http/astats_over_http.c
+++ b/traffic_server/plugins/astats_over_http/astats_over_http.c
@@ -297,29 +297,6 @@ static int getSpeedForIF(char *inf, char *buffer, int 
bufferSize) {
 }
 
 static int getSpeed(char *interface, char *buffer, int bufferSize) {
-       //  List<String> interfaces = new ArrayList<String>();
-       //  String str = getFile("/sys/class/net/bonding_masters");
-       //  if(str !=null && str.contains(myInterface)) {
-       //          String base = "/sys/class/net/"+myInterface+"/";
-       //          File directory = new File(base);
-       //          String[] children = directory.list();
-       //          for(String child : children) {
-       //                  if(child.contains("slave_")) {
-       //                          child = child.replace("slave_", "");
-       //                          interfaces.add(child);
-       //                  }
-       //          }
-       //  } else {
-       //          interfaces.add(myInterface);
-       //  }
-
-       //  for(String ifName : interfaces) {
-       //          str = getFile("/sys/class/net/" +ifName+ "/operstate");
-       //          if(str.contains("up")) {
-       //                  str = getFile("/sys/class/net/" +ifName+ "/speed");
-       //                  result.speed += Long.parseLong(str.trim());
-       //          }
-       //  }
        DIR *dp;
        struct dirent *ep;
        char *str;

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0c2fa833/traffic_server/plugins/astats_over_http/astats_over_http.spec
----------------------------------------------------------------------
diff --git a/traffic_server/plugins/astats_over_http/astats_over_http.spec 
b/traffic_server/plugins/astats_over_http/astats_over_http.spec
index 28ac853..19afdf7 100644
--- a/traffic_server/plugins/astats_over_http/astats_over_http.spec
+++ b/traffic_server/plugins/astats_over_http/astats_over_http.spec
@@ -19,13 +19,13 @@
 %global install_prefix "/opt"
 
 Name:          astats_over_http
-Version:       1.1.0
+Version:       1.2
 Release:       1%{?dist}
 Summary:       Apache Traffic Server %{name} plugin
 Vendor:                Comcast
 Group:         Applications/Communications
 License:       Apache License, Version 2.0
-URL:           
https://github.com/Comcast/traffic_control/tree/master/traffic_server/plugins/astats_over_http
+URL:           
https://github.com/apache/incubator-trafficcontrol/tree/master/traffic_server/plugins/astats_over_http
 Source0:       %{name}.tar.gz
 BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 Requires:      trafficserver = 5.2.0
@@ -35,7 +35,7 @@ BuildRequires:        trafficserver = 5.2.0
 Apache Traffic Server plugin
 
 %prep
-%setup -n %{name}
+%setup -q -n %{name}
 
 %build
 %{install_prefix}/trafficserver/bin/tsxs -v -c %{name}.c -o %{name}.so

Reply via email to