aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_cpuinfo.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-01-29 06:58:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-01-29 06:58:47 +0000
commit442d1e63f267c5cb4ef9ed6f2b11158af33da68e (patch)
tree88e6f3067cb34c2f8eb111e48f5f85e7bf3dce4c /src/core/ngx_cpuinfo.c
parent6e8bc2b72dd8f3620b72848ee3d372bf446d3c22 (diff)
downloadnginx-442d1e63f267c5cb4ef9ed6f2b11158af33da68e.tar.gz
nginx-442d1e63f267c5cb4ef9ed6f2b11158af33da68e.zip
fix cache line size for Pentium 4
Diffstat (limited to 'src/core/ngx_cpuinfo.c')
-rw-r--r--src/core/ngx_cpuinfo.c2
1 files changed, 1 insertions, 1 deletions
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: