Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

[trivial] Remove Tabs and trailing spaces #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions tor_
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
'''
=head1 NAME
tor_
tor_

=head1 DESCRIPTION
Wildcard plugin that gathers some metrics from the Tor deamon
Expand Down Expand Up @@ -149,7 +149,7 @@ class TorPlugin(object):
print('no (failed to import the required python module "stem": {})'.format(e))

try:
import GeoIP
import GeoIP

except ImportError as e:
print('no (failed to import the required python module "GeoIP": {})'.format(e))
Expand Down Expand Up @@ -426,7 +426,7 @@ class TorRouters(TorPlugin):
'category': 'network',
'info': 'known Tor onion routers'}
labels = {'routers': {'label': 'routers', 'min': 0, 'type': 'GAUGE'} }


TorPlugin.conf_from_dict(graph, labels)

Expand All @@ -445,11 +445,11 @@ class TorRouters(TorPlugin):
sys.exit(1)
else:
routers = response.split('\n')
onr = 0
for router in routers:
if router[0] == "r":
onr += 1
onr = 0
for router in routers:
if router[0] == "r":
onr += 1

print('routers.value {}'.format(onr))


Expand Down Expand Up @@ -491,7 +491,7 @@ class TorTraffic(TorPlugin):


##########################
# Main
# Main
##########################


Expand Down