From: Alexander Moisseev Date: Sat, 17 Mar 2018 15:58:08 +0000 (+0300) Subject: [Minor] Fix spinner rotation X-Git-Tag: 1.7.1~13^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=233c5ae2ad31a4ab9755fd52492cc796c329bfd7;p=rspamd.git [Minor] Fix spinner rotation --- 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(); }