]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix soft reject in pie chart
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Jan 2017 12:11:37 +0000 (12:11 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Jan 2017 12:11:37 +0000 (12:11 +0000)
interface/js/rspamd.js

index def4718ae3417cd08ce477e4e1abf5c27dcb8755..cef69604f14160fe39fc7bef4696b5eb797bc86e 100644 (file)
                         probable: 0,
                         greylist: 0,
                         reject: 0,
+                        soft_reject: 0,
                         scanned: 0,
                         learned: 0,
                         read_only: neighbours_status[0].data.read_only,
                         neighbours_sum.probable += neighbours_status[e].data.probable;
                         neighbours_sum.greylist += neighbours_status[e].data.greylist;
                         neighbours_sum.reject += neighbours_status[e].data.reject;
+                        neighbours_sum.soft_reject += neighbours_status[e].data.soft_reject;
                         neighbours_sum.scanned += neighbours_status[e].data.scanned;
                         neighbours_sum.learned += neighbours_status[e].data.learned;
                         neighbours_sum.uptime += neighbours_status[e].data.uptime;
             $('#modalBody form').hide();
         });
 
-//        function getChart() {
-//            $.ajax({
-//                dataType: 'json',
-//                type: 'GET',
-//                url: 'pie',
-//                jsonp: false,
-//                beforeSend: function (xhr) {
-//                    xhr.setRequestHeader('Password', getPassword());
-//                },
-//                success: function (data) {
-//                     console.log(data);
-//                    pie = drawPie(pie, "chart", data);
-//                }
-//            });
-//        }
-
         function getChart() {
             var creds = JSON.parse(sessionStorage.getItem('Credentials'));
             if (creds && creds[checked_server]) {