[yast-commit] <rest-service> master : use -1 instead of nil for unknown (sub)progress
ref: refs/heads/master commit c0e0af0b1708194514760c5b335d01477e49a3f5 Author: Ladislav Slezak <lslezak@novell.com> Date: Thu Dec 17 09:40:13 2009 +0100 use -1 instead of nil for unknown (sub)progress --- plugins/patches/app/models/resolvable.rb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/patches/app/models/resolvable.rb b/plugins/patches/app/models/resolvable.rb index e636c44..0e6c2aa 100644 --- a/plugins/patches/app/models/resolvable.rb +++ b/plugins/patches/app/models/resolvable.rb @@ -168,9 +168,9 @@ public proxy.on_signal("ProgressChanged") do |p1, p2, p3, p4| Rails.logger.debug "PackageKit progress: ProgressChanged: #{p1}%" - bg_stat.progress = p1 - # 101% means no subprogress available - bg_stat.subprogress = p2 < 101 ? p2 : nil + # 101% means no progress/subprogress available + bg_stat.progress = p1 < 101 ? p1 : -1 + bg_stat.subprogress = p2 < 101 ? p2 : -1 end end -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
Ladislav Slezak