Skip to content

Commit 5df8fa4

Browse files
authored
Remove the redundant logic as MaxClockSpeed is already getting read before L2CacheSize (#20)
1 parent 5c04341 commit 5df8fa4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

windows/cpu_info.c

-6
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@ void ReadCPUInformation(Tuplestorestate *tupstore, TupleDesc tupdesc)
140140
VariantClear(&query_result);
141141
}
142142

143-
hres = result->lpVtbl->Get(result, L"MaxClockSpeed", 0, &query_result, 0, 0);
144-
if (FAILED(hres))
145-
nulls[Anum_l2cache_size] = true;
146-
else
147-
values[Anum_l2cache_size] = Int32GetDatum(query_result.intVal);
148-
149143
hres = result->lpVtbl->Get(result, L"L2CacheSize", 0, &query_result, 0, 0);
150144
if (FAILED(hres))
151145
nulls[Anum_l2cache_size] = true;

0 commit comments

Comments
 (0)