1 |
On Tue, May 06, 2008 at 10:45:23AM +0200, Penguin Lover Etaoin Shrdlu squawked: |
2 |
> On Tuesday 6 May 2008, 10:39, Neil Bothwick wrote: |
3 |
> > On Tue, 6 May 2008 10:11:07 +0200, Etaoin Shrdlu wrote: |
4 |
> > > cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}' |
5 |
> > |
6 |
> > This uses three commands when one will do, there's no need for cat or |
7 |
> > grep |
8 |
> > |
9 |
> > awk '/^cpu MHz/ {print $4"/30 +";}' /proc/cpuinfo |
10 |
> > |
11 |
> > Similarly for the free command. |
12 |
> |
13 |
> Ah sure. I just wanted to explain what the commands do, and didn't even |
14 |
> try to make corrections. |
15 |
> |
16 |
> > Longer isn't always better ;-) |
17 |
> |
18 |
> But it produces better obfuscated code! :-) |
19 |
|
20 |
Yay! Free bug-fixing! I love this list. |
21 |
|
22 |
Actually, I have that script sitting on my computer since some time in |
23 |
2002. I didn't write it: it was written by a friend of mine and posted |
24 |
to the college unix users group mailing list, with comments as to what |
25 |
the proper scaling factors are all around. |
26 |
|
27 |
The scaling factors for the various components were chosen at that |
28 |
time because it seemed to be good, realistic numbers to compare |
29 |
performances of then-current desktop boxes. At least *we* felt it |
30 |
works better than bogomips. |
31 |
|
32 |
As to the part of looking at used memory instead of total memory: I |
33 |
don't remember it doing that, I have to go back to check. The double |
34 |
counting of scsi disks is a bug, mostly because this script was |
35 |
written before UDEV when it wasn't an issue. |
36 |
|
37 |
Lastly: this is just some good, not-too-clean locker-room-style fun. |
38 |
Don't take it too seriously! |
39 |
|
40 |
Regards, |
41 |
|
42 |
W |
43 |
-- |
44 |
In this course we will of course make use of God's Units, namely |
45 |
h-bar = c = 1 |
46 |
but occasionally I will indulge myself in my personal addition to |
47 |
those units, in the form of |
48 |
2 = -1 = pi = i = 1 |
49 |
please feel free to interject whenever you feel confused, and I will |
50 |
make my best effort to clarify things. |
51 |
~Prof. Herman Verlinde explaining the things. |
52 |
PHY 509, Intro to QFT, first lecture 09-12-03 |
53 |
Sortir en Pantoufles: up 515 days, 11:57 |
54 |
-- |
55 |
gentoo-user@l.g.o mailing list |