Fixed: bug #37004: niceload example does not work

This commit is contained in:
Ole Tange 2012-08-01 23:06:26 +02:00
parent 9625fe4453
commit 0a026db5e7
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@ In terminal 1 run: top
In terminal 2 run:
B<niceload perl -e '$|=1;do{$l==$r or print "."; $l=$r}until(($r=time-$^T)>>B<50)'>
B<niceload -q perl -e '$|=1;do{$l==$r or print "."; $l=$r}until(($r=time-$^T)>>B<50)'>
This will print a '.' every second for 50 seconds and eat a lot of
CPU. When the load rises to 1.0 the process is suspended.

View file

@ -223,7 +223,7 @@ In terminal 1 run: top
In terminal 2 run:
@strong{niceload perl -e '$|=1;do@{$l==$r or print "."; $l=$r@}until(($r=time-$^T)}>@strong{50)'}
@strong{niceload -q perl -e '$|=1;do@{$l==$r or print "."; $l=$r@}until(($r=time-$^T)}>@strong{50)'}
This will print a '.' every second for 50 seconds and eat a lot of
CPU. When the load rises to 1.0 the process is suspended.