Skip to content

Commit 66ca56c

Browse files
author
Daniil.Karol
committedFeb 14, 2025·
Increase threshold and fix path formatting logic
Updated MILLIS_THRESHOLD from 100 to 1000 to modify timing behavior. Removed unnecessary package name conversion in the file path to ensure correct path formatting. These changes improve consistency and functionality in tracking and path handling.
1 parent 2a03458 commit 66ca56c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/tracking/TaskFileHandler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ object TaskFileHandler {
150150
append("/$PLUGIN_NAME/${taskFile.extension?.getDirectoryName() ?: ""}")
151151
append("${task.root.pathOrEmpty()}/${taskFile.sourceSet.path}")
152152
}
153-
append("${taskFile.relativePath.toPackageName().pathOrEmpty()}/")
153+
append("${taskFile.relativePath.pathOrEmpty()}/")
154154
append("${taskFile.filename}${taskFile.extension?.ext ?: ""}")
155155
}
156156

‎ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/tracking/activity/ActivityTracker.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ class ActivityTracker(project: Project) : BaseTracker("activity") {
143143
}
144144
}
145145

146-
private const val MILLIS_THRESHOLD = 100
146+
private const val MILLIS_THRESHOLD = 1000

0 commit comments

Comments
 (0)
Please sign in to comment.