Hi Hugo.

"Hugo Tavares Reis" <[EMAIL PROTECTED]> writes:

> hi.
>
> just fyi, I've uploaded a patched dwm to make it talk friendly with dzen.
>
> archive, settings and screenshot:
> http://nhak.org/hugo/dwm-dzen/

Just a little remark about your netmon.sh script:

,----
| ~$ time (n=0; for i in {1000..1}; do n=`echo "$n+$i"|bc`; done; echo $n)
| 500500
| 
| real  0m15.812s
| user  0m0.532s
| sys   0m15.449s
| ~$ time (n=0; for i in {1000..1}; do n=$(($n+$i)); done; echo $n)
| 500500
| 
| real  0m0.015s
| user  0m0.016s
| sys   0m0.000s
`----

I don't know if arithmetic evaluation is a bashism, but I think the
costs for using bc are quite high.  However, I the let syntax (e.g.,
»let "n = n +i"«) should work with all posix-shells and therefore be
portable.

Regards,
 olli

-- 
http://www.sopos.org/olli/ GnuPG-Key: gpg --recv-keys 0x9A00D827
GnuPG-Fingerprint: F27A BA8C 1CFB B905 65A8  2544 0F07 B675 9A00 D827
NP: Citizen Fish - Next Big Thing
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Reply via email to