]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- ksh did not like doble minus ("+5--10"), needs spaces ("+5 - -10") to process correctly
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Dec 2011 17:15:48 +0000 (17:15 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Dec 2011 17:15:48 +0000 (17:15 +0000)
svn-id: @12453

lib/functions

index a997d3517c4b5d6e8f0515edba95985f322d01b0..d271637e91b7ea0bdcea8b58b95f8428a1332ef3 100644 (file)
@@ -643,7 +643,7 @@ daemon() {
                nice=${nice:-0}
 
                # make nice level absolute, not to be dependant of nice level of shell where service started
-               nice=$((nice-$(nice)))
+               nice=$(($nice - $(nice)))
 
                if [ "$closefds" = 1 ]; then
                        exec 1>&-
This page took 1.066702 seconds and 4 git commands to generate.