summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-03-17 18:58:08 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-03-17 18:58:08 +0300
commit233c5ae2ad31a4ab9755fd52492cc796c329bfd7 (patch)
tree19eccae348226ec339f9830d7078a7001f779e58 /utils
parent3d2b7274a1adda138488140f688e724f7d994ba1 (diff)
downloadrspamd-233c5ae2ad31a4ab9755fd52492cc796c329bfd7.tar.gz
rspamd-233c5ae2ad31a4ab9755fd52492cc796c329bfd7.zip
[Minor] Fix spinner rotation
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rspamd_stats.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl
index efb787358..50191959c 100755
--- a/utils/rspamd_stats.pl
+++ b/utils/rspamd_stats.pl
@@ -702,8 +702,8 @@ sub spinner {
my @spinner = qw{/ - \ |};
return
if ( $json || ( time - $spinner_update_time ) < 1 );
- printf "%s\r", $spinner[ $spinner_update_time % @spinner ];
$spinner_update_time = time;
+ printf "%s\r", $spinner[ $spinner_update_time % @spinner ];
select()->flush();
}