]> git.kaiwu.me - nginx.git/commitdiff
fix cache line size for Pentium 4
authorIgor Sysoev <igor@sysoev.ru>
Tue, 29 Jan 2008 06:58:47 +0000 (06:58 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 29 Jan 2008 06:58:47 +0000 (06:58 +0000)
src/core/ngx_cpuinfo.c

index 2ed26b8d4c29b605798ba0cae750f2f1d561dab2..587f97811bf9c839f43bcc6178750c3506e4bea5 100644 (file)
@@ -92,7 +92,7 @@ ngx_cpuinfo(void)
 
     if (ngx_strcmp(vendor, "GenuineIntel") == 0) {
 
-        switch (cpu[0] & 0xf00) {
+        switch ((cpu[0] & 0xf00) >> 8) {
 
         /* Pentium */
         case 5: