Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes
In directory usw-pr-cvs1:/tmp/cvs-serv9734
Modified Files:
SnapshotNode2.java
Log Message:
by lukas
Index: SnapshotNode2.java
===================================================================
RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes/SnapshotNode2.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** SnapshotNode2.java 3 Sep 2002 17:52:41 -0000 1.2
--- SnapshotNode2.java 10 Sep 2002 19:35:38 -0000 1.3
***************
*** 100,127 ****
}
});
! props.put(new PropertySupport.ReadOnly("time", long.class,
bundle.getString("LBL_snapshotTime"), bundle.getString("HINT_snapshotTime")) {
public Object getValue() {
! return new Long(snapshot.getSnapshot().time());
}
});
! props.put(new PropertySupport.ReadOnly("totalMemory", long.class,
bundle.getString("LBL_totalMemory"), bundle.getString("HINT_totalMemory")) {
public Object getValue() {
return new Long(snapshot.getSnapshot().totalMemory());
}
! });
! props.put(new PropertySupport.ReadOnly("freeMemory", long.class,
bundle.getString("LBL_freeMemory"), bundle.getString("HINT_freeMemory")) {
public Object getValue() {
return new Long(snapshot.getSnapshot().freeMemory());
}
! });
! props.put(new PropertySupport.ReadOnly("takenMemory", long.class,
bundle.getString("LBL_takenMemory"), bundle.getString("HINT_takenMemory")) {
public Object getValue() {
return new Long(snapshot.getSnapshot().totalMemory()-snapshot.getSnapshot().freeMemory());
}
! });
return sheet;
}
--- 100,128 ----
}
});
! props.put(new PropertySupport.ReadOnly("time", String.class,
bundle.getString("LBL_snapshotTime"), bundle.getString("HINT_snapshotTime")) {
public Object getValue() {
! return (new java.text.SimpleDateFormat("dd.MM.yyyy")).format(
! new Date( snapshot.getSnapshot().time() ));
}
});
! /*props.put(new PropertySupport.ReadOnly("totalMemory", long.class,
bundle.getString("LBL_totalMemory"), bundle.getString("HINT_totalMemory")) {
public Object getValue() {
return new Long(snapshot.getSnapshot().totalMemory());
}
! });*/
! /*props.put(new PropertySupport.ReadOnly("freeMemory", long.class,
bundle.getString("LBL_freeMemory"), bundle.getString("HINT_freeMemory")) {
public Object getValue() {
return new Long(snapshot.getSnapshot().freeMemory());
}
! });*/
! /*props.put(new PropertySupport.ReadOnly("takenMemory", long.class,
bundle.getString("LBL_takenMemory"), bundle.getString("HINT_takenMemory")) {
public Object getValue() {
return new Long(snapshot.getSnapshot().totalMemory()-snapshot.getSnapshot().freeMemory());
}
! }); */
return sheet;
}
***************
*** 171,174 ****
--- 172,179 ----
/*
* $Log$
+ * Revision 1.3 2002/09/10 19:35:38 vachis
+ *
+ * by lukas
+ *
* Revision 1.2 2002/09/03 17:52:41 petrul
* fixed: was refering SnapshotNode
|