Skip to content

Commit 4fdba1c

Browse files
committed
f elapsed instead of math
1 parent 87bd470 commit 4fdba1c

File tree

1 file changed

+1
-1
lines changed
  • lightning-background-processor/src

1 file changed

+1
-1
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl BackgroundProcessor {
235235
log_trace!(logger, "Persisting ChannelManager...");
236236
persister.persist_manager(&*channel_manager)?;
237237
log_trace!(logger, "Done persisting ChannelManager.");
238-
ev_handle_time_since_last_ping += Instant::now() - persist_start;
238+
ev_handle_time_since_last_ping += persist_start.elapsed();
239239
}
240240
// Exit the loop if the background processor was requested to stop.
241241
if stop_thread.load(Ordering::Acquire) == true {

0 commit comments

Comments
 (0)