Skip to content

Commit

Permalink
2.1.2.2, where the CPU temperature in ℉ above 100℉ is correctly taken…
Browse files Browse the repository at this point in the history
… care of. Fixes #211
  • Loading branch information
yujitach committed Dec 15, 2020
1 parent fcb4e77 commit 36863fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion InfoPlistPreprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef InfoPlistPreprocessor_h
#define InfoPlistPreprocessor_h

#define MM_VERSION 2.1.2.1
#define MM_VERSION 2.1.2.2
#define MM_COPYRIGHT MenuMeters MM_VERSION, by many contributors

#endif /* InfoPlistPreprocessor_h */
6 changes: 5 additions & 1 deletion MenuExtras/MenuMeterCPU/MenuMeterCPUExtra.m
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,11 @@ - (void)renderSingleTemperatureIntoImage:(NSImage *)image atOffset:(float)offset
}
break;
case kCPUTemperatureUnitFahrenheit:
temperatureString=[NSString stringWithFormat:@"%.1f", fahrenheit];
if(fahrenheit>=100){
temperatureString=[NSString stringWithFormat:@"%d", (int)fahrenheit];
}else{
temperatureString=[NSString stringWithFormat:@"%.1f", fahrenheit];
}
if(celsius<-100){
temperatureString=@"??℉";
}
Expand Down
4 changes: 4 additions & 0 deletions releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
</head>
<body>
<dl>
<dt>2.1.2.2 (Dec/15/2020)</dt>
<dd>
Fixes a bug in 2.1.2 where the CPU temperature in ℉ didn't show the top digit if it was above 100℉.
</dd>
<dt>2.1.2.1 (Dec/12/2020)</dt>
<dd>
Fixes a bug in 2.1.2 which prevented the net meter to load in some cases.
Expand Down

0 comments on commit 36863fd

Please sign in to comment.