20: Fix compilatoin of ConsoleAlarmAction
This commit is contained in:
@@ -2,7 +2,7 @@ package com.r35157.jupiterperpsalarm.impl.ref;
|
|||||||
|
|
||||||
public final class ConsoleAlarmAction implements AlarmAction {
|
public final class ConsoleAlarmAction implements AlarmAction {
|
||||||
@Override
|
@Override
|
||||||
public void trigger(OraclePrice price, PriceAlarmDefinition alarm) {
|
public void trigger(OraclePrice price, ResolvedPriceAlarm alarm) {
|
||||||
System.err.println();
|
System.err.println();
|
||||||
System.err.println("============================================================");
|
System.err.println("============================================================");
|
||||||
System.err.printf(
|
System.err.printf(
|
||||||
@@ -10,7 +10,7 @@ public final class ConsoleAlarmAction implements AlarmAction {
|
|||||||
price.asset(),
|
price.asset(),
|
||||||
price.priceUsd().toPlainString(),
|
price.priceUsd().toPlainString(),
|
||||||
alarm.direction(),
|
alarm.direction(),
|
||||||
alarm.targetExpression()
|
alarm.target().toPlainString()
|
||||||
);
|
);
|
||||||
System.err.printf(
|
System.err.printf(
|
||||||
"Trigger: %s, oracle time: %s, slot: %d, source: %s%n",
|
"Trigger: %s, oracle time: %s, slot: %d, source: %s%n",
|
||||||
|
|||||||
Reference in New Issue
Block a user