Commit b1e7cbe2 authored by Sergey Patrikeev's avatar Sergey Patrikeev Committed by intellij-monorepo-bot
Browse files

HTML indexing diagnostics [IDEA-267366]: fix time unit in comparison.

(cherry picked from commit b7fcfd56b18242bef69005a8ad15b11522f68aff)

GitOrigin-RevId: 47b28b9cc3b71ab1d0da4b4cad030d4591728d24
parent eeea5e2e
Showing with 2 additions and 1 deletion
+2 -1
......@@ -5,6 +5,7 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.util.indexing.diagnostic.dump.paths.PortableFilePath
import com.intellij.util.indexing.diagnostic.dump.paths.PortableFilePaths
import java.util.concurrent.TimeUnit
/**
* Accumulates indexing statistics for a set of indexable files.
......@@ -96,7 +97,7 @@ class IndexingJobStatistics(private val project: Project, val fileSetName: Strin
if (IndexDiagnosticDumper.shouldDumpPathsOfIndexedFiles) {
indexedFiles += IndexedFile(getIndexedFilePath(file), fileStatistics.wasFullyIndexedByExtensions)
}
if (processingTime > SLOW_FILE_PROCESSING_THRESHOLD_MS) {
if (processingTime > SLOW_FILE_PROCESSING_THRESHOLD_MS * 1_000_000) {
slowIndexedFiles.addElement(SlowIndexedFile(file.name, processingTime, indexingTime, contentLoadingTime))
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment