Skip to content

Commit 6c4e632

Browse files
committed
switch fp to int div
1 parent 345c483 commit 6c4e632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/logger/include/logger.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ rate limit. @note Only calls that have _rate_limited suffixed will be rate limit
425425
#if defined(ESP_PLATFORM)
426426
// use esp_log_timestamp to get the time in milliseconds
427427
uint64_t time = esp_log_timestamp();
428-
uint64_t seconds = time / 1e3f;
428+
uint64_t seconds = time / 1'000;
429429
uint64_t milliseconds = (time % 1'000);
430430
return fmt::format("{}.{:03}", seconds, milliseconds);
431431
#else

0 commit comments

Comments
 (0)