Crappy Trac Ticket system

Due the crappy Track Ticket system i cannot open an ticket to send a patch for a bug in imports_log.py (Submission rejected as potential spam (Content contained these blacklisted patterns: ‘rx’)). Argh…

An error message appears when the import of logs is started and no info about the monitoring of the import process is done. This Patch fixes the issue (Error message: division by zero).

Do whatever you want with it…

Index: import_logs.py

— import_logs.py (revision 6867)
+++ import_logs.py (working copy)
@@ -650,10 +650,13 @@
latest_total_recorded = 0
while not self.monitor_stop:
current_total = stats.count_lines_recorded.value

  •        sub_total = (time.time() - self.time_start)
    
  •        if sub_total <= 0:
    
  •            sub_total = 1
           print '%d lines parsed, %d lines recorded, %d records/sec (avg), %d records/sec (current)' % (
               stats.count_lines_parsed.value,
               current_total,
    
  •            current_total / (time.time() - self.time_start),
    
  •            current_total / sub_total, # (time.time() - self.time_start),
               current_total - latest_total_recorded
           )
           latest_total_recorded = current_total

Hi mlrxnet, thanks for the report & patch, I’ve committed a fix here: division by zero error in import_logs.py when monitor thread runs immediately after start time is recorded · Issue #3346 · matomo-org/matomo · GitHub

Thanks capedfuzz!

We have finally upgraded Trac to the latest version and now Login + Reset password should work for all users. Please let us know if you have any problem with http://dev.piwik.org