Skip to content

Commit

Permalink
Remove the redundant logic as MaxClockSpeed is already getting read b…
Browse files Browse the repository at this point in the history
…efore L2CacheSize (#20)
  • Loading branch information
neel5481 authored Oct 27, 2023
1 parent 5c04341 commit 5df8fa4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions windows/cpu_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ void ReadCPUInformation(Tuplestorestate *tupstore, TupleDesc tupdesc)
VariantClear(&query_result);
}

hres = result->lpVtbl->Get(result, L"MaxClockSpeed", 0, &query_result, 0, 0);
if (FAILED(hres))
nulls[Anum_l2cache_size] = true;
else
values[Anum_l2cache_size] = Int32GetDatum(query_result.intVal);

hres = result->lpVtbl->Get(result, L"L2CacheSize", 0, &query_result, 0, 0);
if (FAILED(hres))
nulls[Anum_l2cache_size] = true;
Expand Down

0 comments on commit 5df8fa4

Please sign in to comment.