Skip to content

Commit 36863fd

Browse files
committed
2.1.2.2, where the CPU temperature in ℉ above 100℉ is correctly taken care of. Fixes #211
1 parent fcb4e77 commit 36863fd

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

InfoPlistPreprocessor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef InfoPlistPreprocessor_h
1010
#define InfoPlistPreprocessor_h
1111

12-
#define MM_VERSION 2.1.2.1
12+
#define MM_VERSION 2.1.2.2
1313
#define MM_COPYRIGHT MenuMeters MM_VERSION, by many contributors
1414

1515
#endif /* InfoPlistPreprocessor_h */

MenuExtras/MenuMeterCPU/MenuMeterCPUExtra.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,11 @@ - (void)renderSingleTemperatureIntoImage:(NSImage *)image atOffset:(float)offset
514514
}
515515
break;
516516
case kCPUTemperatureUnitFahrenheit:
517-
temperatureString=[NSString stringWithFormat:@"%.1f", fahrenheit];
517+
if(fahrenheit>=100){
518+
temperatureString=[NSString stringWithFormat:@"%d", (int)fahrenheit];
519+
}else{
520+
temperatureString=[NSString stringWithFormat:@"%.1f", fahrenheit];
521+
}
518522
if(celsius<-100){
519523
temperatureString=@"??℉";
520524
}

releases.html

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
</head>
1818
<body>
1919
<dl>
20+
<dt>2.1.2.2 (Dec/15/2020)</dt>
21+
<dd>
22+
Fixes a bug in 2.1.2 where the CPU temperature in ℉ didn't show the top digit if it was above 100℉.
23+
</dd>
2024
<dt>2.1.2.1 (Dec/12/2020)</dt>
2125
<dd>
2226
Fixes a bug in 2.1.2 which prevented the net meter to load in some cases.

0 commit comments

Comments
 (0)