forked from I2P_Developers/i2p.i2p
Console: Event log param fix again
This commit is contained in:
@ -73,9 +73,9 @@ public class EventLogHelper extends FormHandler {
|
|||||||
|
|
||||||
public void setFrom(String s) {
|
public void setFrom(String s) {
|
||||||
try {
|
try {
|
||||||
_age = Long.parseLong(s);
|
_age = Long.parseLong(s) * 1000;
|
||||||
if (_age > 0)
|
if (_age > 0)
|
||||||
_from = _context.clock().now() - (_age * 1000);
|
_from = _context.clock().now() - _age;
|
||||||
else
|
else
|
||||||
_from = 0;
|
_from = 0;
|
||||||
} catch (NumberFormatException nfe) {
|
} catch (NumberFormatException nfe) {
|
||||||
@ -143,7 +143,7 @@ public class EventLogHelper extends FormHandler {
|
|||||||
_out.write("<option value=\"");
|
_out.write("<option value=\"");
|
||||||
_out.write(Long.toString(age));
|
_out.write(Long.toString(age));
|
||||||
_out.write("\"");
|
_out.write("\"");
|
||||||
if (age == _age)
|
if (age == _age / 1000)
|
||||||
_out.write(HelperBase.SELECTED);
|
_out.write(HelperBase.SELECTED);
|
||||||
_out.write(">");
|
_out.write(">");
|
||||||
if (age == 0)
|
if (age == 0)
|
||||||
|
Reference in New Issue
Block a user