diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2017-11-11 16:17:19 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2017-11-11 16:17:19 +0200 |
commit | fdb5bd161d9754ca2aa4c50116e55b9233e339c1 (patch) | |
tree | 173866f0d57020ba43a49c4781e6465b9eca29a4 /src/cryptonote_basic/miner.cpp | |
parent | Merge pull request #2694 (diff) | |
download | monero-fdb5bd161d9754ca2aa4c50116e55b9233e339c1.tar.xz |
Remove unused variables and fix typos in comments
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index 0aafe24e1..93f24875b 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -735,8 +735,6 @@ namespace cryptonote #elif defined(__linux__) - const std::string STR_CPU("cpu"); - const std::size_t STR_CPU_LEN = STR_CPU.size(); const std::string STAT_FILE_PATH = "/proc/stat"; if( !epee::file_io_utils::is_file_exist(STAT_FILE_PATH) ) @@ -787,7 +785,7 @@ namespace cryptonote #endif - return false; // unsupported systemm.. + return false; // unsupported system } //----------------------------------------------------------------------------------------------------- bool miner::get_process_time(uint64_t& total_time) @@ -818,7 +816,7 @@ namespace cryptonote #endif - return false; // unsupported system.. + return false; // unsupported system } //----------------------------------------------------------------------------------------------------- uint8_t miner::get_percent_of_total(uint64_t other, uint64_t total) |