Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 84c8050

Browse files
authored
Update Test.cpp
1 parent 7c5dfd2 commit 84c8050

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Drivers/MSR/Library/Test.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
/*
22
================================================================================
33
MIT License
4-
54
Copyright (c) 2025 gafoo
6-
75
This file is part of the HardView project:
86
https://github.com/gafoo173/HardView
9-
107
Licensed under the MIT License
118
See the LICENSE file in the project root for more details.
129
================================================================================
@@ -754,7 +751,7 @@ int main() {
754751
std::getline(std::cin, inp);
755752
if (!inp.empty()) {
756753
try {
757-
std::stoi(inp);
754+
core = std::stoi(inp);
758755
}catch (...) {
759756
std::cout << COLOR_MAGENTA << "Invalid core number, defaulting to core 0" << COLOR_RESET << std::endl;
760757
core = 0;
@@ -825,5 +822,4 @@ int main() {
825822
std::cout << COLOR_WHITE << "Thank you for testing the MSR Driver Library!" << COLOR_RESET << std::endl;
826823

827824
return 0;
828-
829825
}

0 commit comments

Comments
 (0)