From 442d1e63f267c5cb4ef9ed6f2b11158af33da68e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 29 Jan 2008 06:58:47 +0000 Subject: fix cache line size for Pentium 4 --- src/core/ngx_cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ngx_cpuinfo.c b/src/core/ngx_cpuinfo.c index 2ed26b8d4..587f97811 100644 --- 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: -- cgit