File chart : fixed bug when the save file open and draw file lock event 09/28109/1
authorhyeran74.kim <hyeran74.kim@samsung.com>
Fri, 26 Sep 2014 07:59:11 +0000 (16:59 +0900)
committerjuyoung kim <j0.kim@samsung.com>
Fri, 26 Sep 2014 08:03:30 +0000 (01:03 -0700)
Change-Id: I488ce7e2cec124e241755ba3e2ffa17bc9d4616f
Signed-off-by: hyeran74.kim <hyeran74.kim@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/manager/FileDataMaker.java

index bbc4e71..2375fcf 100644 (file)
@@ -419,11 +419,12 @@ public class FileDataMaker {
                        removeConcurrentAccess(filePath);
                        break;
                case LogCenterConstants.FD_API_TYPE_LOCK_START:
-                       addStartAccessData(new FileAccess(filePath, pid, tid, fd, 
-                                       apiType, eventTime));
                        if(event.getLockType() == AnalyzerConstants.F_SETLKW) {// F_SETLKW
                                addStartAccessData(new FileAccess(filePath, pid, tid, fd, 
                                                LogCenterConstants.FD_API_TYPE_LOCK_WAIT_START, eventTime));
+                       }else{
+                               addStartAccessData(new FileAccess(filePath, pid, tid, fd, 
+                                               LogCenterConstants.FD_API_TYPE_LOCK_START, eventTime));
                        }
                        addCurrentLock(filePath);
                        break;
@@ -431,6 +432,8 @@ public class FileDataMaker {
                        if(event.getLockType() == AnalyzerConstants.F_SETLKW) {// F_SETLKW
                                addEndAccessData(pid, tid, fd, filePath, eventTime,
                                                size, LogCenterConstants.FD_API_TYPE_LOCK_WAIT_START, errNo);
+                               addStartAccessData(new FileAccess(filePath, pid, tid, fd, 
+                                               LogCenterConstants.FD_API_TYPE_LOCK_START, eventTime));
                        }
                        break;
                case LogCenterConstants.FD_API_TYPE_UNLOCK: