Skip to content

Commit

Permalink
Update for PM changing from Date to Long
Browse files Browse the repository at this point in the history
  • Loading branch information
jlhughes committed Sep 28, 2020
1 parent da0b1e4 commit 595c7c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/foam/box/socket/SocketConnectionBox.js
Expand Up @@ -215,7 +215,7 @@ foam.CLASS({
try {
long sent = in_.readLong();
PM p = PM.create(getX(), this.getClass().getSimpleName(), getHost()+":"+getPort()+":network");
p.setStartTime(new java.util.Date(sent));
p.setStartTime(sent);
p.log(x);
pm = PM.create(x, pmKey, pmName);
Expand Down
2 changes: 1 addition & 1 deletion src/foam/box/socket/SocketServerProcessor.java
Expand Up @@ -78,7 +78,7 @@ public void execute(X x) {
try {
long sent = in_.readLong();
PM p = PM.create(x, pmKey, pmName+":network");
p.setStartTime(new java.util.Date(sent));
p.setStartTime(sent);
p.log(x);

pm = PM.create(x, pmKey, pmName+":execute");
Expand Down
2 changes: 1 addition & 1 deletion src/foam/nanos/medusa/ClusterCommand.js
Expand Up @@ -115,7 +115,7 @@ foam.CLASS({
// set destination on previous hop
ClusterCommandHop hop = existing[existing.length -1];
PM pm = hop.getPm();
pm.setEndTime(new java.util.Date());
pm.setEndTime(System.currentTimeMillis());
pm.setName(PM.combine(pm.getName(), support.getConfigId()));
// start next hop
ClusterCommandHop[] hops = new ClusterCommandHop[existing.length + 1];
Expand Down
2 changes: 1 addition & 1 deletion src/foam/nanos/medusa/ClusterConfigMonitorAgent.js
Expand Up @@ -132,7 +132,7 @@ foam.CLASS({
ClusterConfig cfg = (ClusterConfig) client.find_(x, config.getId());
pm.log(x);
if ( cfg != null ) {
cfg.setPingTime(pm.getEndTime().getTime() - pm.getStartTime().getTime());
cfg.setPingTime(pm.getEndTime() - pm.getStartTime());
getDao().put_(x, cfg);
} else {
getLogger().warning("client,find", cfg.getId(), "null");
Expand Down

0 comments on commit 595c7c9

Please sign in to comment.