I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit a00f11d5 authored by zzz's avatar zzz
Browse files

i2psnark: Add another method to support RPC plugin

parent 13ad5d72
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,7 @@ public class Snark
// String indicating main activity
private volatile String activity = "Not started";
private final long savedUploaded;
private long _startedTime;
private static final AtomicInteger __RPCID = new AtomicInteger();
private final int _rpcID = __RPCID.incrementAndGet();
......@@ -544,6 +545,7 @@ public class Snark
starting = true;
try {
x_startTorrent();
_startedTime = _util.getContext().clock().now();
} finally {
starting = false;
}
......@@ -1375,4 +1377,14 @@ public class Snark
public int getRPCID() {
return _rpcID;
}
/**
* When did we start this torrent
* For RPC
* @return 0 if not started before. Not cleared when stopped.
* @since 0.9.30
*/
public long getStartedTime() {
return _startedTime;
}
}
2017-03-21 zzz
* i2psnark: Enhancement to support RPC plugin
2017-03-20 zzz
* i2psnark: Enhancements to support RPC plugin
* SSU: More work on introducer expiration (proposal 133)
 
2017-03-18 zzz
* Addressbook (ticket #1966):
......
......@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 8;
public final static long BUILD = 9;
/** for example "-test" */
public final static String EXTRA = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment