fixed typo

This commit is contained in:
Sebastian Stenzel
2020-11-09 13:10:35 +01:00
parent 371b826aa0
commit 9a94b6f95e
2 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ public class VaultStatisticsController implements FxController {
private final LongBinding bpsRead;
private final LongBinding bpsWritten;
private final DoubleBinding cacheHitRate;
private final DoubleBinding cacheHitDregrees;
private final DoubleBinding cacheHitDegrees;
private final DoubleBinding cacheHitPercentage;
private final LongBinding totalBytesRead;
private final LongBinding totalBytesWritten;
@@ -63,7 +63,7 @@ public class VaultStatisticsController implements FxController {
this.bpsRead = WeakBindings.bindLong(stats.bytesPerSecondReadProperty());
this.bpsWritten = WeakBindings.bindLong(stats.bytesPerSecondWrittenProperty());
this.cacheHitRate = WeakBindings.bindDouble(stats.cacheHitRateProperty());
this.cacheHitDregrees = cacheHitRate.multiply(-270);
this.cacheHitDegrees = cacheHitRate.multiply(-270);
this.cacheHitPercentage = cacheHitRate.multiply(100);
this.totalBytesRead = WeakBindings.bindLong(stats.toalBytesReadProperty());
this.totalBytesWritten = WeakBindings.bindLong(stats.toalBytesWrittenProperty());
@@ -163,12 +163,12 @@ public class VaultStatisticsController implements FxController {
public double getCacheHitPercentage() { return cacheHitPercentage.get(); }
public DoubleBinding cacheHitDregreesProperty() {
return cacheHitDregrees;
public DoubleBinding cacheHitDegreesProperty() {
return cacheHitDegrees;
}
public double getCacheHitDregrees() {
return cacheHitDregrees.get();
public double getCacheHitDegrees() {
return cacheHitDegrees.get();
}
public LongBinding totalBytesReadProperty() { return totalBytesRead;}

View File

@@ -26,7 +26,7 @@
<StackPane>
<Group>
<Arc styleClass="cache-arc-background" centerX="100" centerY="100" radiusX="100" radiusY="100" startAngle="225" length="-270"/>
<Arc styleClass="cache-arc-foreground" centerX="100" centerY="100" radiusX="100" radiusY="100" startAngle="225" length="${controller.cacheHitDregrees}"/>
<Arc styleClass="cache-arc-foreground" centerX="100" centerY="100" radiusX="100" radiusY="100" startAngle="225" length="${controller.cacheHitDegrees}"/>
</Group>
<VBox StackPane.alignment="CENTER" alignment="CENTER">
<FormattedLabel styleClass="label-large" format="\%1.0f %%" arg1="${controller.cacheHitPercentage}"/>