]> source.dussan.org Git - rspamd.git/commitdiff
Provide more specific numbers on stats 2117/head
authorEyePulp <eyepulp@eyepulp.net>
Mon, 26 Mar 2018 12:49:16 +0000 (07:49 -0500)
committerGitHub <noreply@github.com>
Mon, 26 Mar 2018 12:49:16 +0000 (07:49 -0500)
Use a `title` attribute on the stats widgets to show full specific values in addition to the `Humanize.compactInteger()` values.

interface/js/app/stats.js

index 377c2272cc5e7313216a6458305eee796b786d18..3855f4d64203a44909d1539bf9fb33d51fd93f85 100644 (file)
@@ -74,7 +74,8 @@ function($, d3pie, Humanize) {
                     '</strong>' + i + '</div>';
                 $(widget).appendTo(widgets);
             } else {
-                widget = '<li class="stat-box"><div class="widget"><strong>' +
+                var titleAtt = Humanize.intComma(item) + ' ' + i;
+                widget = '<li class="stat-box"><div class="widget" title="' + titleAtt + '"><strong>' +
                     Humanize.compactInteger(item) + '</strong>' + i + '</div></li>';
                 if (i == 'scanned') {
                     stat_w[0] = widget;