File tree 2 files changed +21
-9
lines changed
2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 9
9
#ifndef InfoPlistPreprocessor_h
10
10
#define InfoPlistPreprocessor_h
11
11
12
- #define MM_VERSION 2.1.2
12
+ #define MM_VERSION 2.1.2.1
13
13
#define MM_COPYRIGHT MenuMeters MM_VERSION, by many contributors
14
14
15
15
#endif /* InfoPlistPreprocessor_h */
Original file line number Diff line number Diff line change @@ -617,16 +617,28 @@ - (NSString *)runCommand:(NSString *)commandToRun
617
617
}
618
618
619
619
- (NSNumber *)speedForInterfaceName : (NSString *)bsdInterface {
620
- NSDictionary * airportDict=[self sysconfigValueForKey: [NSString stringWithFormat: @" Setup:/Network/Interface/%@ /AirPort" ,bsdInterface]];
621
- if (airportDict){
622
- return [self speedForAirport ];
620
+ {
621
+ NSDictionary * airportDict=[self sysconfigValueForKey: [NSString stringWithFormat: @" Setup:/Network/Interface/%@ /AirPort" ,bsdInterface]];
622
+ if (airportDict){
623
+ NSNumber * x = [self speedForAirport ];
624
+ if (x){
625
+ return x;
626
+ }
627
+ }
623
628
}
624
-
625
- NSNumber *x=[self speedForInterfaceNameViaIOKit: bsdInterface];
626
- if (!x){
627
- x=[self speedForInterfaceNameViaIfConfig: bsdInterface];
629
+ {
630
+ NSNumber * x=[self speedForInterfaceNameViaIOKit: bsdInterface];
631
+ if (x){
632
+ return x;
633
+ }
634
+ }
635
+ {
636
+ NSNumber * x=[self speedForInterfaceNameViaIfConfig: bsdInterface];
637
+ if (x){
638
+ return x;
639
+ }
628
640
}
629
- return x ;
641
+ return [ NSNumber numberWithLong: kInterfaceDefaultSpeed ] ;
630
642
}
631
643
- (NSNumber *)speedForAirport
632
644
{
You can’t perform that action at this time.
0 commit comments