Skip to content

Commit 535d9fb

Browse files
committed
Remove nanosec precision from last handshake
1 parent e021f77 commit 535d9fb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

client/iface/configurer/usp.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,7 @@ func toLastHandshake(stringVar string) (time.Time, error) {
352352
if err != nil {
353353
return time.Time{}, fmt.Errorf("parse handshake sec: %w", err)
354354
}
355-
nsec, err := strconv.ParseInt(stringVar, 10, 64)
356-
if err != nil {
357-
return time.Time{}, fmt.Errorf("parse handshake nsec: %w", err)
358-
}
359-
return time.Unix(sec, nsec), nil
355+
return time.Unix(sec, 0), nil
360356
}
361357

362358
func toBytes(s string) (int64, error) {

0 commit comments

Comments
 (0)