Skip to content

Commit

Permalink
Fix microsecond to second conversion
Browse files Browse the repository at this point in the history
Summary: As title. This fixes a bad copy/paste.

Reviewed By: sharmafb

Differential Revision: D52529691

fbshipit-source-id: 144adbced7ba65dd4833ad9d51bf84d71ca7cfdf
  • Loading branch information
jbeshay authored and facebook-github-bot committed Jan 12, 2024
1 parent e606de4 commit 7a531a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quic/common/events/LibevQuicEventBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void LibevQuicEventBase::scheduleTimeout(
// There is no callback. Nothing to schedule.
return;
}
double seconds = timeout.count() / 1000.;
double seconds = std::chrono::duration<double>(timeout).count();
auto wrapper =
static_cast<TimerCallbackWrapper*>(getImplHandle(timerCallback));
if (wrapper == nullptr) {
Expand Down

0 comments on commit 7a531a2

Please sign in to comment.