mirror of
https://github.com/NecroticBamboo/QRBee.git
synced 2025-12-21 12:11:53 +00:00
DEEP-37 Fixed bug in anomaly reporting
This commit is contained in:
parent
241d7d434a
commit
fb50477521
@ -32,7 +32,7 @@ internal class AnomalyBase
|
|||||||
|
|
||||||
protected bool IsActive()
|
protected bool IsActive()
|
||||||
{
|
{
|
||||||
if (DateTime.UtcNow < _anomalyEnd)
|
if (DateTime.Now < _anomalyEnd)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ internal class AnomalyBase
|
|||||||
if (_anomalyActive)
|
if (_anomalyActive)
|
||||||
{
|
{
|
||||||
_anomalyActive = false;
|
_anomalyActive = false;
|
||||||
// _anomalyReporter.Report(_anomalyStart, _anomalyEnd, "Unconfirmed transaction");
|
_anomalyReporter.Report(_anomalyStart, _anomalyEnd, Name);
|
||||||
_logger.LogWarning($"Anomaly:{Name} ended");
|
_logger.LogWarning($"Anomaly:{Name} ended");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ internal class AnomalyBase
|
|||||||
_anomalyEnd = _anomalyStart + _anomalyDuration;
|
_anomalyEnd = _anomalyStart + _anomalyDuration;
|
||||||
_anomalyActive = true;
|
_anomalyActive = true;
|
||||||
_logger.LogWarning($"Anomaly: {Name}. Dice={dice} Ends=\"{_anomalyEnd.ToLocalTime():s}\"");
|
_logger.LogWarning($"Anomaly: {Name}. Dice={dice} Ends=\"{_anomalyEnd.ToLocalTime():s}\"");
|
||||||
_anomalyReporter.Report(_anomalyStart, _anomalyEnd, $"{Name}");
|
//_anomalyReporter.Report(_anomalyStart, _anomalyEnd, $"{Name}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user