Skip to content

Commit

Permalink
This does work
Browse files Browse the repository at this point in the history
  • Loading branch information
WispySparks committed Dec 13, 2024
1 parent cc41a0e commit 6e507e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ default <S> void log(String identifier, Collection<S> value, Struct<S> struct) {
* @param value the new value of the data field
*/
default void log(String identifier, Measure<?> value) {
log(identifier, value.baseUnitMagnitude());
log(identifier + " (" + value.unit().symbol() + ")", value.baseUnitMagnitude());
}

/**
Expand All @@ -212,7 +212,7 @@ default void log(String identifier, Measure<?> value) {
* @param <U> the dimension of the unit
*/
default <U extends Unit> void log(String identifier, Measure<U> value, U unit) {
log(identifier, value.in(unit));
log(identifier + " (" + unit.symbol() + ")", value.in(unit));
}

/**
Expand Down

0 comments on commit 6e507e8

Please sign in to comment.