Console: Event log param fix again

This commit is contained in:
zzz
2020-04-28 14:40:57 +00:00
parent b874bb2ba0
commit e9d56d85af

View File

@ -73,9 +73,9 @@ public class EventLogHelper extends FormHandler {
public void setFrom(String s) {
try {
_age = Long.parseLong(s);
_age = Long.parseLong(s) * 1000;
if (_age > 0)
_from = _context.clock().now() - (_age * 1000);
_from = _context.clock().now() - _age;
else
_from = 0;
} catch (NumberFormatException nfe) {
@ -143,7 +143,7 @@ public class EventLogHelper extends FormHandler {
_out.write("<option value=\"");
_out.write(Long.toString(age));
_out.write("\"");
if (age == _age)
if (age == _age / 1000)
_out.write(HelperBase.SELECTED);
_out.write(">");
if (age == 0)