Change Interest.interestLifetime to be milliseconds (not seconds).
diff --git a/js/NDN.js b/js/NDN.js
index e515975..2b36d5b 100644
--- a/js/NDN.js
+++ b/js/NDN.js
@@ -110,7 +110,7 @@
interest.interestLifetime = template.interestLifetime;
}
else
- interest.interestLifetime = 4.0; // default interest timeout value in seconds.
+ interest.interestLifetime = 4000; // default interest timeout value in milliseconds.
if (this.host == null || this.port == null) {
if (this.getHostAndPort == null)
@@ -150,7 +150,7 @@
// Fetch the ccndId.
var interest = new Interest(new Name(NDN.ccndIdFetcher));
- interest.interestLifetime = 4.0; // seconds
+ interest.interestLifetime = 4000; // milliseconds
var thisNDN = this;
var timerID = setTimeout(function() {