-rw-r--r-- | libopie2/opienet/onetwork.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index cd36f16..50d67bb 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp | |||
@@ -393,7 +393,7 @@ void OWirelessNetworkInterface::init() | |||
393 | 393 | ||
394 | for ( int i = 0; i < range.num_frequency; ++i ) | 394 | for ( int i = 0; i < range.num_frequency; ++i ) |
395 | { | 395 | { |
396 | int freq = (int) ( double( range.freq[i].m ) * pow( 10, range.freq[i].e ) / 1000000.0 ); | 396 | int freq = (int) ( double( range.freq[i].m ) * pow( 10.0, range.freq[i].e ) / 1000000.0 ); |
397 | _channels.insert( freq, i+1 ); | 397 | _channels.insert( freq, i+1 ); |
398 | } | 398 | } |
399 | } | 399 | } |
@@ -436,7 +436,7 @@ int OWirelessNetworkInterface::channel() const | |||
436 | } | 436 | } |
437 | else | 437 | else |
438 | { | 438 | { |
439 | return _channels[ static_cast<int>(double( _iwr.u.freq.m ) * pow( 10, _iwr.u.freq.e ) / 1000000) ]; | 439 | return _channels[ static_cast<int>(double( _iwr.u.freq.m ) * pow( 10.0, _iwr.u.freq.e ) / 1000000) ]; |
440 | } | 440 | } |
441 | } | 441 | } |
442 | 442 | ||
@@ -465,7 +465,7 @@ double OWirelessNetworkInterface::frequency() const | |||
465 | } | 465 | } |
466 | else | 466 | else |
467 | { | 467 | { |
468 | return double( _iwr.u.freq.m ) * pow( 10, _iwr.u.freq.e ) / 1000000000.0; | 468 | return double( _iwr.u.freq.m ) * pow( 10.0, _iwr.u.freq.e ) / 1000000000.0; |
469 | } | 469 | } |
470 | } | 470 | } |
471 | 471 | ||