mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 20:21:27 +00:00
fixed typo
This commit is contained in:
@@ -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;}
|
||||
|
||||
@@ -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}"/>
|
||||
|
||||
Reference in New Issue
Block a user