Explorar o código

doubled digits in profile filenames

Darren Ranalli %!s(int64=17) %!d(string=hai) anos
pai
achega
a3b9f73b87
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      direct/src/showbase/PythonUtil.py

+ 1 - 1
direct/src/showbase/PythonUtil.py

@@ -937,7 +937,7 @@ def startProfile(filename=PyUtilProfileDefaultFilename,
                  callInfo=1,
                  cmd='run()'):
     # uniquify the filename to allow multiple processes to profile simultaneously
-    filename = '%s.%s.%s' % (filename, randUint31(), randUint31())
+    filename = '%s.%s%s' % (filename, randUint31(), randUint31())
     if PModules.profile is None:
         import profile
         PModules.profile = profile