Author: locilka Date: Thu May 3 16:11:06 2012 New Revision: 68084 URL: http://svn.opensuse.org/viewcvs/yast?rev=68084&view=rev Log: - UI refresh adapted also in searching for changed files belonging to RPMs (BNC #756493). Modified: branches/SuSE-Code-11-SP2-Branch/backup/package/yast2-backup.changes branches/SuSE-Code-11-SP2-Branch/backup/src/ui.ycp Modified: branches/SuSE-Code-11-SP2-Branch/backup/package/yast2-backup.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/backup/package/yast2-backup.changes?rev=68084&r1=68083&r2=68084&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/backup/package/yast2-backup.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/backup/package/yast2-backup.changes Thu May 3 16:11:06 2012 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 3 16:07:13 CEST 2012 - locilka@suse.com + +- UI refresh adapted also in searching for changed files belonging + to RPMs (BNC #756493). + +------------------------------------------------------------------- Mon Apr 16 13:43:20 CEST 2012 - locilka@suse.com - UI refresh in searching for modified files optimized for faster Modified: branches/SuSE-Code-11-SP2-Branch/backup/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/backup/src/ui.ycp?rev=68084&r1=68083&r2=68084&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/backup/src/ui.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/backup/src/ui.ycp Thu May 3 16:11:06 2012 @@ -1728,6 +1728,9 @@ } } +integer ui_last_refresh = 0; +integer ui_time_now = 0; + define void Search_ChangedPackageFiles () { // store package's changed files if (size(package_files) > 0) { @@ -1748,7 +1751,17 @@ } package_num = package_num + 1; - if (!Backup::cron_mode) { + // Do not refresh UI in cron mode + if (Backup::cron_mode) + return; + + ui_time_now = time(); + + // BNC#756493: Refresh the UI max. once per second + // Otherwise it uses too much CPU on faster systems / disks + if (ui_time_now > ui_last_refresh) { + ui_last_refresh = ui_time_now; + UI::ChangeWidget(`id(`package), `Value, _("Searching in Package: ") + actual_package); UI::ChangeWidget(`id(`progress), `Value, package_num); // bug #172406 @@ -1757,9 +1770,6 @@ } } -integer ui_last_refresh = 0; -integer ui_time_now = 0; - /** * Updates UI: Modified files size and count */ -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org