comment out nice and ionice calls; this *really* slows down startup

-- Dustin Kirkland <kirkland@ubuntu.com>Thu, 16 Apr 2009 12:51:38 -0500
This commit is contained in:
Dustin Kirkland 2009-04-16 12:52:05 -05:00
commit fe60380a2d
2 changed files with 11 additions and 5 deletions

5
debian/changelog vendored
View file

@ -4,14 +4,15 @@ screen-profiles (1.45) unreleased; urgency=low
* bin/cpu-freq: fix for powerpc, fix for arm
* bin/uptime: don't print seconds, since we don't update often enough
* screen-profiles-status: use home bin scripts, if available first,
then fallback to system-wide, allows for local overrides
then fallback to system-wide, allows for local overrides; comment
out nice and ionice calls; this *really* slows down startup
* bin/*: route and ifconfig are in /sbin, fully qualify
* bin/release: eliminate one expensive lsb_release call
[ Jon Bernard <bernardj@gmail.com> ]
* debian/control: fix typo in screen-profiles-extras description
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 12:42:52 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 12:51:38 -0500
screen-profiles (1.44-0ubuntu1) jaunty; urgency=low

View file

@ -17,9 +17,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Let's try to be really "nice" about gathering status:
renice 10 $$ >/dev/null 2>&1 || true
ionice -c3 -p $$ >/dev/null 2>&1 || true
###########################################################
# We should be really "nice" about gathering status:
#renice 10 $$ >/dev/null 2>&1 || true
#ionice -c3 -p $$ >/dev/null 2>&1 || true
# However, this *really* slows down startup.
# We need a good way of only doing this for updates,
# but not at screen startup.
###########################################################
if [ -d "$HOME/.screen-profiles/bin" ]; then
DIR="$HOME/.screen-profiles/bin"