Bläddra i källkod

working on ubuntu precise12.04

Fabio Rueda 13 år sedan
förälder
incheckning
93b35b06f9
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      contrib/check_nmap.py

+ 1 - 2
contrib/check_nmap.py

@@ -207,8 +207,7 @@ class CheckNmap:
 	# _if_ two processes in deed get the same tmp-file
 	# the only result is a normal error message to nagios
 	#
-	r=random.random()
-	self.tmp_file=tempfile.mktemp('.%s')%r.randint(0,100000)
+	self.tmp_file=tempfile.mktemp('.%s') % random.randint(0,100000)
 	if self.debug:
 	    print 'Tmpfile is: %s'%self.tmp_file
 	#