Skip to content
Snippets Groups Projects
Commit 4b1278ca authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Convert stats failed_sent_files from array of objects to array of strings

Fixes issue reported by Ragnarok (DOCKSUD) where by data/binkstats.ini
could contain:
     failed_sent_files = [object Object],[object Object],[object
Object],[object Object],[object Object],[object Object],[object
Object],[object Object
parent 54eb4268
Branches
Tags
No related merge requests found
......@@ -53,7 +53,7 @@ function update_stats(stats, addr, bp, host)
if(bp.sent_files.length)
stats[addr].sent_files = bp.sent_files;
if(bp.failed_sent_files.length)
stats[addr].failed_sent_files = bp.failed_sent_files;
stats[addr].failed_sent_files = bp.failed_sent_files.map(function(i) { return i.path; });
if(bp.received_files.length)
stats[addr].received_files = bp.received_files;
if(bp.failed_received_files.length)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment