Skip to content

Commit e34790f

Browse files
committed
Site: display task-clock measurements as seconds (instead of ms) to match behaviour for cpu-clock
1 parent 7dd6095 commit e34790f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/selector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,8 @@ impl StatisticSeries {
479479
SeriesResponse {
480480
series: StatisticSeries {
481481
artifact_ids: ArtifactIdIter::new(artifact_ids.clone()),
482-
points: if metric == *"cpu-clock" {
483-
// Convert to seconds -- perf reports this measurement in
482+
points: if metric == *"cpu-clock" || metric == *"task-clock" {
483+
// Convert to seconds -- perf reports these measurements in
484484
// milliseconds
485485
points
486486
.into_iter()

0 commit comments

Comments
 (0)