Bugzilla – Attachment 489391 Details for
Bug 756493
Yast2 System Backup causes Xorg to use much CPU
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
Last patch for "Searching in Package: ..."
backup_last_patch.diff (text/plain), 1.07 KB, created by
Lukas Ocilka
on 2012-05-03 13:59:01 UTC
(
hide
)
Description:
Last patch for "Searching in Package: ..."
Filename:
MIME Type:
Creator:
Lukas Ocilka
Created:
2012-05-03 13:59:01 UTC
Size:
1.07 KB
patch
obsolete
>Index: ui.ycp >=================================================================== >--- ui.ycp (revision 68081) >+++ ui.ycp (working copy) >@@ -1739,6 +1739,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) { >@@ -1759,7 +1762,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 >@@ -1768,9 +1781,6 @@ > } > } > >-integer ui_last_refresh = 0; >-integer ui_time_now = 0; >- > /** > * Updates UI: Modified files size and count > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 756493
:
485688
|
486230
|
486423
| 489391