[yast-commit] r60512 - in /trunk/backup: package/yast2-backup.changes src/ui.ycp
Author: locilka Date: Mon Jan 25 16:39:07 2010 New Revision: 60512 URL: http://svn.opensuse.org/viewcvs/yast?rev=60512&view=rev Log: - Fixed low speed of automatic backup (BNC #568615). Modified: trunk/backup/package/yast2-backup.changes trunk/backup/src/ui.ycp Modified: trunk/backup/package/yast2-backup.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/backup/package/yast2-backup.changes?rev=60512&r1=60511&r2=60512&view=diff ============================================================================== --- trunk/backup/package/yast2-backup.changes (original) +++ trunk/backup/package/yast2-backup.changes Mon Jan 25 16:39:07 2010 @@ -1,4 +1,9 @@ ------------------------------------------------------------------ +Mon Jan 25 16:36:47 CET 2010 - locilka@suse.cz + +- Fixed low speed of automatic backup (BNC #568615). + +------------------------------------------------------------------ Wed Jan 13 18:56:03 CET 2010 - kmachalkova@suse.cz - Adjusted .desktop file(s) to wrap /sbin/yast2/ calls in xdg-su Modified: trunk/backup/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/backup/src/ui.ycp?rev=60512&r1=60511&r2=60512&view=diff ============================================================================== --- trunk/backup/src/ui.ycp (original) +++ trunk/backup/src/ui.ycp Mon Jan 25 16:39:07 2010 @@ -181,7 +181,7 @@ if (backup_PID != nil && (boolean) SCR::Read (.process.running, backup_PID)) { - sleep(wait); + if ((boolean) SCR::Read (.process.buffer_empty, backup_PID) == true) sleep(wait); ret = (symbol) UI::PollInput(); @@ -1950,7 +1950,7 @@ } if (Backup::cron_mode) { - sleep (wait_time); + if ((boolean) SCR::Read (.process.buffer_empty, backup_PID) == true) sleep (wait_time); } else { ret = UI::PollInput(); @@ -1966,7 +1966,7 @@ } if (line == nil && errline == nil) - sleep (ui_wait_time); + if ((boolean) SCR::Read (.process.buffer_empty, backup_PID) == true) sleep (ui_wait_time); } } @@ -2093,7 +2093,8 @@ } if (Backup::cron_mode) { - sleep(wait_time); + // BNC #568615: yast2 backup takes much longer when scheduled + if ((boolean) SCR::Read (.process.buffer_empty, backup_PID) == true) sleep(wait_time); ret = nil; } else { @@ -2210,7 +2211,8 @@ if (Backup::cron_mode == true) { - sleep(wait_time); + // BNC #568615: yast2 backup takes much longer when scheduled + if ((boolean) SCR::Read (.process.buffer_empty, backup_PID) == true) sleep(wait_time); ret = nil; } @@ -2963,7 +2965,7 @@ if (Backup::cron_mode) { ret = nil; - sleep(wait_time); + if ((boolean) SCR::Read (.process.buffer_empty, backup_PID) == true) sleep(wait_time); CheckFreeSpace(); } else { ret = waitForUserOrProcess(wait_time, `changed); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
locilka@svn.opensuse.org