Reduce graphic processing requirement for pulse bar

Increase sleep time to decrease pulse bar update frequency.

Debian Bug 499193 - gparted: 100% cpu usage

Debian Bug 519764 - gparted: Lots of animation makes use over SSH
                    X-tunnel slow
This commit is contained in:
Curtis Gedak 2012-01-09 19:22:48 -07:00
parent 08357b6e81
commit 7c5b5edaef
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ void Dialog_Progress::on_signal_show()
while ( Gtk::Main::events_pending() )
Gtk::Main::iteration();
gdk_threads_leave();
usleep( 10000 ) ;
usleep( 100000 ) ;
gdk_threads_enter();
}

View File

@ -618,7 +618,7 @@ void Win_GParted::show_pulsebar( const Glib::ustring & status_message )
while ( Gtk::Main::events_pending() )
Gtk::Main::iteration();
gdk_threads_leave();
usleep( 10000 );
usleep( 100000 );
gdk_threads_enter();
Glib::ustring tmp_msg = gparted_core .get_thread_status_message() ;
if ( tmp_msg != "" )