mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
Fixed: bug #37004: niceload example does not work
This commit is contained in:
parent
9625fe4453
commit
0a026db5e7
|
@ -187,7 +187,7 @@ In terminal 1 run: top
|
||||||
|
|
||||||
In terminal 2 run:
|
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
|
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.
|
CPU. When the load rises to 1.0 the process is suspended.
|
||||||
|
|
|
@ -223,7 +223,7 @@ In terminal 1 run: top
|
||||||
|
|
||||||
In terminal 2 run:
|
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
|
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.
|
CPU. When the load rises to 1.0 the process is suspended.
|
||||||
|
|
Loading…
Reference in a new issue