mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 12:08:31 +00:00
fix: Minus sign correction. (#18802)
This commit is contained in:
parent
9f1be47b37
commit
15f56c124a
@ -117,10 +117,9 @@ public class DataInsightDescriptionAndOwnerTemplate {
|
|||||||
if (percent > 0) {
|
if (percent > 0) {
|
||||||
symbol = "+";
|
symbol = "+";
|
||||||
color = "#008611";
|
color = "#008611";
|
||||||
} else if (percent < 0) {
|
|
||||||
symbol = "-";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No need for "-" since String.format handles negatives
|
||||||
return String.format(
|
return String.format(
|
||||||
"<span style=\"color:%s ; font-weight: 600\">%s%.2f%%</span>", color, symbol, percent);
|
"<span style=\"color:%s ; font-weight: 600\">%s%.2f%%</span>", color, symbol, percent);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user