- Don't slow down progress updating at the end of boot

This commit is contained in:
Ray Strode 2009-05-08 15:15:34 +00:00
parent 0b5afcbc24
commit b126b84acf
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,15 @@
diff -up plymouth-0.7.0/src/plugins/splash/two-step/plugin.c.lose-power-function plymouth-0.7.0/src/plugins/splash/two-step/plugin.c
--- plymouth-0.7.0/src/plugins/splash/two-step/plugin.c.lose-power-function 2009-05-08 11:13:16.136880758 -0400
+++ plymouth-0.7.0/src/plugins/splash/two-step/plugin.c 2009-05-08 11:13:30.095874516 -0400
@@ -599,9 +599,11 @@ on_boot_progress (ply_boot_splash_plugin
percent_done *= (1 / SHOW_ANIMATION_PERCENT);
total_duration = duration / percent_done;
+#if 0
/* Fun made-up smoothing function to make the growth asymptotic:
* fraction(time,estimate)=1-2^(-(time^1.45)/estimate) */
percent_done = 1.0 - pow (2.0, -pow (duration, 1.45) / total_duration) * (1.0 - percent_done);
+#endif
ply_progress_animation_set_percent_done (plugin->progress_animation,
percent_done);

View File

@ -5,7 +5,7 @@
Summary: Graphical Boot Animation and Logger Summary: Graphical Boot Animation and Logger
Name: plymouth Name: plymouth
Version: 0.7.0 Version: 0.7.0
Release: 0.2009.05.06.3%{?dist} Release: 0.2009.05.06.4%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2 Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
@ -21,6 +21,8 @@ Requires: initscripts >= 8.83-1
Obsoletes: plymouth-text-and-details-only < %{version}-%{release} Obsoletes: plymouth-text-and-details-only < %{version}-%{release}
Patch0: plymouth-0.7.0-lose-power-function.patch
%description %description
Plymouth provides an attractive graphical boot animation in Plymouth provides an attractive graphical boot animation in
place of the text messages that normally get shown. Text place of the text messages that normally get shown. Text
@ -215,6 +217,7 @@ and finally burst into into full form.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .loser-power-function
%build %build
%configure --enable-tracing --disable-tests --without-boot-entry \ %configure --enable-tracing --disable-tests --without-boot-entry \
@ -431,6 +434,9 @@ fi
%defattr(-, root, root) %defattr(-, root, root)
%changelog %changelog
* Fri May 08 2009 Ray Strode <rstrode@redhat.com> 0.7.0-0.2009.05.06.4
- Don't slow down progress updating at the end of boot
* Thu May 07 2009 Ray Strode <rstrode@redhat.com> 0.7.0-0.2009.05.06.3 * Thu May 07 2009 Ray Strode <rstrode@redhat.com> 0.7.0-0.2009.05.06.3
- Change colors to transition better to gdm - Change colors to transition better to gdm