Skip to content

Commit

Permalink
benchmarks/iperf: better place, minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 2, 2017
1 parent 388800b commit e1e70b4
Show file tree
Hide file tree
Showing 18 changed files with 14 additions and 14 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ PAGER?= less
all:
@cat ${.CURDIR}/README.md | ${PAGER}

CATEGORIES= databases devel dns mail net-mgmt net security sysutils www
CATEGORIES= benchmarks databases devel dns mail net-mgmt \
net security sysutils www

.for CATEGORY in ${CATEGORIES}
_${CATEGORY}!= ls -1d ${CATEGORY}/*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ A list of currently available plugins
=====================================

```
benchmarks/iperf -- Connection speed tester
databases/redis -- Redis DB
devel/debug -- Debugging Tools
devel/helloworld -- A sample framework application
Expand All @@ -46,7 +47,6 @@ net/freeradius -- RADIUS Authentication, Authorization and Accounting Server
net/ftp-proxy -- Control ftp-proxy processes
net/haproxy -- Reliable, high performance TCP/HTTP load balancer
net/igmp-proxy -- IGMP-Proxy Service
net/iperf -- iperf connection speed tester
net/l2tp -- L2TP server based on MPD5
net/mdns-repeater -- Proxy multicast DNS between networks
net/pppoe -- PPPoE server based on MPD5
Expand Down
8 changes: 8 additions & 0 deletions benchmarks/iperf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PLUGIN_NAME= iperf
PLUGIN_VERSION= 0.0.1
PLUGIN_COMMENT= Connection speed tester
PLUGIN_DEPENDS= iperf3 ruby
PLUGIN_MAINTAINER= [email protected]
PLUGIN_DEVEL= yes

.include "../../Mk/plugins.mk"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function setAction() {
'error' => 'interface is unknown');
}
}

public function queryAction() {
$backend = new Backend();
return $this->send_command('query', $backend);
Expand All @@ -89,7 +89,7 @@ private function send_command($command, $backend) {
fgets($socket);
fclose($socket);
return json_decode($data,true);

}
private function get_real_interface_name($name) {
$config = Config::getInstance()->toArray();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function result_to_html(elements) {
output += '<table class="table table-striped"><tr><td>{{ lang._('Interface') }}</td><td>' + element.interface + '</td></tr>' +
'<tr><td>{{ lang._('Start Time') }}</td><td>' + element.start_time + '</td></tr>' +
'<tr><td>{{ lang._('Port') }}</td><td>' + element.port + '</td></tr></table>';

// only if test did already run
if ('result' in element) {
var result = element.result,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,3 @@ def run_test_thread(interface = 'any')
rescue
server.close
end

8 changes: 0 additions & 8 deletions net/iperf/Makefile

This file was deleted.

0 comments on commit e1e70b4

Please sign in to comment.