DaanHoogland commented on code in PR #12779:
URL: https://github.com/apache/cloudstack/pull/12779#discussion_r2926850058
##########
server/src/main/java/com/cloud/vm/UserVmManagerImpl.java:
##########
@@ -2452,18 +2428,14 @@ public boolean configure(String name, Map<String,
Object> params) throws Configu
final int DAILY_TIME = 60 * 24;
if (_usageAggregationRange == DAILY_TIME) {
_dailyOrHourly = true;
- } else if (_usageAggregationRange == HOURLY_TIME) {
- _dailyOrHourly = true;
- } else {
- _dailyOrHourly = false;
- }
+ } else _dailyOrHourly = _usageAggregationRange == HOURLY_TIME;
Review Comment:
but then
```
_dailyOrHourly = (_usageAggregationRange == DAILY_TIME ||
_usageAggregationRange == HOURLY_TIME);
```
right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]