Github user kkhatua commented on a diff in the pull request:

    https://github.com/apache/drill/pull/719#discussion_r95107988
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/ProfileResources.java
 ---
    @@ -72,16 +72,30 @@
         public static final SimpleDateFormat format = new 
SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
     
         private String queryId;
    +    private long startTime;
    +    private long endTime;
         private Date time;
         private String location;
         private String foreman;
         private String query;
         private String state;
         private String user;
     
    -    public ProfileInfo(String queryId, long time, String foreman, String 
query, String state, String user) {
    +    public ProfileInfo(String queryId, long startTime, String foreman, 
String query, String state, String user) {
           this.queryId = queryId;
    -      this.time = new Date(time);
    +      this.startTime = startTime;
    --- End diff --
    
    Agreed. Collapsed into a single constructor. We'll use the current time 
directly to mark the current 'end' time. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to