Commits

Vladimir Rusinov  committed 247b612

apache slow log: convert time to seconds

  • Participants
  • Parent commits 4096f0c

Comments (0)

Files changed (1)

File src/ztc/apache/__init__.py

             if slowlog_time and (time > slowlog_time):
                 # log slow queries
                 f = open(slowlog_path, 'a')
-                f.write(str(time*0.000001) + ' ' + l)
+                f.write(str(int(time*0.000001)) + ' ' + " ".join(l.split()[1:]) + "\n")
                 f.close()
             total_lines += 1
         self._truncatelog()