2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Merge pull request #498 from minitux/patch-3

int conversion
This commit is contained in:
Steve Schnepp 2014-07-03 01:08:05 +02:00
commit d96a6c201a

View File

@ -23,7 +23,7 @@ def get_stats():
data = '';
HOST = os.environ.get('NUTCRACKER_STATS_HOST', '127.0.0.1');
PORT = os.environ.get('NUTCRACKER_STATS_PORT', 22222)
PORT = int(os.environ.get('NUTCRACKER_STATS_PORT', 22222))
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))