[Tinyos-commits] CVS: tinyos-1.x/tools/java/net/tinyos/deluge
Pinger.java, 1.2, 1.3
Jonathan Hui
jwhui at users.sourceforge.net
Sat Aug 6 10:40:21 PDT 2005
Update of /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/deluge
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29241
Modified Files:
Pinger.java
Log Message:
- Export program name, compile time, and user hash individually.
Index: Pinger.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/deluge/Pinger.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Pinger.java 27 Jul 2005 23:19:53 -0000 1.2
--- Pinger.java 6 Aug 2005 17:40:18 -0000 1.3
***************
*** 72,75 ****
--- 72,80 ----
private boolean skipNextAdv = false;
private int attempts = 0;
+
+ private String execProgName = "";
+ private long execUnixTime = 0;
+ private long execUserHash = 0;
+
private String identString = "";
private boolean error = false;
***************
*** 201,206 ****
}
public String getExecutingIdent() {
! return identString;
}
--- 206,226 ----
}
+ public String getExecName() {
+ return execProgName;
+ }
+
+ public long getExecUnixTime() {
+ return execUnixTime;
+ }
+
+ public long getExecUserHash() {
+ return execUserHash;
+ }
+
public String getExecutingIdent() {
! Date date = new Date(netProgMsg.get_ident_unix_time()*1000);
! return " Prog Name: " + execProgName + "\n" +
! " Compiled On: " + date + "\n" +
! " User Hash: 0x" + Long.toHexString(execUserHash);
}
***************
*** 243,251 ****
name = name.substring(0, name.indexOf('\0'));
! Date date = new Date(netProgMsg.get_ident_unix_time()*1000);
- identString = " Prog Name: " + name + "\n" +
- " Compiled On: " + date + "\n" +
- " User Hash: 0x" + Long.toHexString(netProgMsg.get_ident_user_hash());
receivedExecutingIdent = true;
}
--- 263,270 ----
name = name.substring(0, name.indexOf('\0'));
! execProgName = name;
! execUnixTime = netProgMsg.get_ident_unix_time();
! execUserHash = netProgMsg.get_ident_user_hash();
receivedExecutingIdent = true;
}
More information about the Tinyos-commits
mailing list