Skip to content
Snippets Groups Projects
Commit 6fa1aa8e 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 493598f9
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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