-rw-r--r-- | libopie2/opienet/onetwork.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index ab3e77f..26a6c81 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp | |||
@@ -58,8 +58,8 @@ | |||
58 | #ifndef NODEBUG | 58 | #ifndef NODEBUG |
59 | #include <opie2/odebugmapper.h> | 59 | #include <opie2/odebugmapper.h> |
60 | 60 | ||
61 | 61 | ||
62 | using namespace Opie::Core; | 62 | using namespace Opie::Core; |
63 | using namespace Opie::Net::Private; | 63 | using namespace Opie::Net::Private; |
64 | DebugMapper* debugmapper = new DebugMapper(); | 64 | DebugMapper* debugmapper = new DebugMapper(); |
65 | #endif | 65 | #endif |
@@ -69,6 +69,6 @@ DebugMapper* debugmapper = new DebugMapper(); | |||
69 | *======================================================================================*/ | 69 | *======================================================================================*/ |
70 | 70 | ||
71 | namespace Opie { | 71 | namespace Opie { |
72 | namespace Net { | 72 | namespace Net { |
73 | ONetwork* ONetwork::_instance = 0; | 73 | ONetwork* ONetwork::_instance = 0; |
74 | 74 | ||
@@ -1007,5 +1007,6 @@ int OWirelessNetworkInterface::signalStrength() const | |||
1007 | int noi = stat.qual.noise; //FIXME: Do something with them? | 1007 | int noi = stat.qual.noise; //FIXME: Do something with them? |
1008 | 1008 | ||
1009 | return cur*100/max; | 1009 | |
1010 | return max != 0 ? cur*100/max: -1; | ||
1010 | } | 1011 | } |
1011 | 1012 | ||
@@ -1244,5 +1245,5 @@ QString OOrinocoMonitoringInterface::name() const | |||
1244 | return "orinoco"; | 1245 | return "orinoco"; |
1245 | } | 1246 | } |
1246 | 1247 | ||
1247 | } | 1248 | } |
1248 | } | 1249 | } |