Skip to content

Commit

Permalink
Created Separate Files for Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace-Krypton committed Jan 4, 2023
1 parent 30bfcd5 commit eada6c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

auto main([[maybe_unused]] int argc, [[maybe_unused]] const char* argv[]) -> int {
/* ------------------------------------ Tests ------------------------------------ */

initscr();
noecho();
cbreak();
setlocale(LC_ALL, "");
endwin();

/*std::cout << "-------------------------------------------------------------------------" << std::endl;
bool invariant = cpu::supports_invariantTSC();
Expand Down Expand Up @@ -69,6 +69,5 @@ auto main([[maybe_unused]] int argc, [[maybe_unused]] const char* argv[]) -> int
std::cout << physmem_total() << std::endl;
std::cout << physmem_available() << std::endl;
std::cout << "-------------------------------------------------------------------------" << std::endl;*/

return 0x0;
}
8 changes: 4 additions & 4 deletions src/uptime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
std::string line;
std::getline(uptime_file, line);
std::istringstream iss(line);
uint64_t uptime_seconds;
std::uint64_t uptime_seconds;
iss >> uptime_seconds;

uint64_t hours = uptime_seconds / 3600;
uint64_t minutes = (uptime_seconds / 60) % 60;
uint64_t seconds = uptime_seconds % 60;
std::uint64_t hours = uptime_seconds / 3600;
std::uint64_t minutes = (uptime_seconds / 60) % 60;
std::uint64_t seconds = uptime_seconds % 60;

std::cout << std::setw(2) << std::setfill('0') << hours << ":"
<< std::setw(2) << std::setfill('0') << minutes << ":"
Expand Down

0 comments on commit eada6c8

Please sign in to comment.