changeset 1871:9afb84c7cc61

fix cache line size for Pentium 4
author Igor Sysoev <igor@sysoev.ru>
date Tue, 29 Jan 2008 06:58:47 +0000
parents a62fb6c156c5
children 8e88522cb6da
files src/core/ngx_cpuinfo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_cpuinfo.c
+++ b/src/core/ngx_cpuinfo.c
@@ -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: