Skip to content

Commit 40b3753

Browse files
ISSUE #1106 #1096: Improve combined activity charts
1 parent 27b63e7 commit 40b3753

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Domain/Activity/Stream/CombinedStream/CalculateCombinedStreams/CalculateCombinedStreamsCommandHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ public function handle(Command $command): void
9999
$row[$distanceIndex] = $distanceInKm->toFloat();
100100

101101
if (false !== $paceIndex) {
102-
$kmPerHour = MetersPerSecond::from($row[$paceIndex])->toSecPerKm();
102+
$secondsPerKilometer = MetersPerSecond::from($row[$paceIndex])->toSecPerKm();
103103
if (UnitSystem::IMPERIAL === $this->unitSystem) {
104-
$row[$paceIndex] = $kmPerHour->toSecPerMile()->toInt();
104+
$row[$paceIndex] = $secondsPerKilometer->toSecPerMile()->toInt();
105105
}
106106
if (UnitSystem::METRIC === $this->unitSystem) {
107-
$row[$paceIndex] = $kmPerHour->toInt();
107+
$row[$paceIndex] = $secondsPerKilometer->toInt();
108108
}
109109
}
110110

0 commit comments

Comments
 (0)