[gparted] Reduce graphic processing requirement for pulse bar



commit 7c5b5edaef865652225c420946595518419ea614
Author: Curtis Gedak <gedakc gmail com>
Date:   Mon Jan 9 19:22:48 2012 -0700

    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

 src/Dialog_Progress.cc |    2 +-
 src/Win_GParted.cc     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Dialog_Progress.cc b/src/Dialog_Progress.cc
index ecb7146..253a378 100644
--- a/src/Dialog_Progress.cc
+++ b/src/Dialog_Progress.cc
@@ -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();
 		}
 
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 5da4e6c..38a67d9 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -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 != "" )



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]