Skip to content

Commit

Permalink
fix #207 adding cwd to /active endpoint (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
willr3 authored Jun 17, 2024
1 parent cb833d7 commit 99a7bff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/hyperfoil/tools/qdup/cmd/Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public Json getActiveJson(){
entry.set("uid",currentCmd.getUid());
entry.set("contextId",context.getContextId());
entry.set("script",rootCmd.getUid()+":"+rootCmd.toString());
entry.set("cwd",context.getCwd());
if(currentCmd instanceof Sh){
entry.set("input",currentCmd.getPrevious()!=null?currentCmd.getPrevious().getOutput():"");
entry.set("output",context.getShell().peekOutput());
Expand All @@ -170,6 +171,7 @@ public Json getActiveJson(){
entry.set("runTime",(System.currentTimeMillis()-context.getStartTime()));
entry.set("lastUpdate",context.getUpdateTime());
entry.set("idleTime",(System.currentTimeMillis()-context.getUpdateTime()));

rtrn.add(entry);
});
return rtrn;
Expand Down

0 comments on commit 99a7bff

Please sign in to comment.