Skip to content

Commit 436ae83

Browse files
sandersmsartek-koltun
authored andcommitted
fix(inventory): correct variable type for cores and threads to unsigned int
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
1 parent 2bef078 commit 436ae83

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

inventory/inventory.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ message CPUInfo {
144144
// to 0. For core counts of 256 or greater, the Core
145145
// Count field is set to FFh and the Core Count 2
146146
// field is set to the number of cores.
147-
int32 total_cores = 1;
147+
uint32 total_cores = 1;
148148
// Number of threads per processor socket
149149
// See 7.5.8. If the value is unknown, the field is set
150150
// to 0. For thread counts of 256 or greater, the
151151
// Thread Count field is set to FFh and the Thread
152152
// Count 2 field is set to the number of threads.
153-
int32 total_threads = 2;
153+
uint32 total_threads = 2;
154154
}
155155

156156
// Physical Memory Array (Type 16)

v1/gen/go/inventory/inventory.pb.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v1/gen/python/inventory/inventory_pb2.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)