-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of swiftlint warnings and move files around
- Loading branch information
1 parent
f42dcb3
commit 7eecc67
Showing
5 changed files
with
224 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// PingStats.swift | ||
// PacketTunnelCore | ||
// | ||
// Created by Marco Nikic on 2024-02-06. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Ping statistics. | ||
struct PingStats { | ||
/// Dictionary holding sequence and corresponding date when echo request took place. | ||
var requests = [UInt16: Date]() | ||
|
||
/// Timestamp when last echo request was sent. | ||
var lastRequestDate: Date? | ||
|
||
/// Timestamp when last echo reply was received. | ||
var lastReplyDate: Date? | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.