diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Common/SystemManager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Common/SystemManager.cpp b/src/Common/SystemManager.cpp index 3c89a33..e58c2ba 100644 --- a/src/Common/SystemManager.cpp +++ b/src/Common/SystemManager.cpp @@ -43,7 +43,7 @@ void SystemManager::getUptimeInfo(unsigned long *uptime, unsigned long *idleTime return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -60,7 +60,7 @@ void SystemManager::getMemoryInfo(unsigned long *totalMem, unsigned long *freeMe return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -77,7 +77,7 @@ void SystemManager::getLoadInfo(unsigned long *currentLoad, unsigned long *nProc return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -94,7 +94,7 @@ void SystemManager::getFSInfo(std::vector<FSInfo> *fsInfo) throw(Net::Exception) return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -111,7 +111,7 @@ void SystemManager::shutdown() throw(Net::Exception) { return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } @@ -128,7 +128,7 @@ void SystemManager::reboot() throw(Net::Exception) { return; } catch(Net::Exception e2) { - if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) + if(e.getErrorCode() == Net::Exception::NOT_IMPLEMENTED && e2.getErrorCode() != Net::Exception::NOT_IMPLEMENTED) e = e2; } } |