ソースを参照

Fix: duration math was backwards

Rod Hynes 10 年 前
コミット
8484d9f2ec
1 ファイル変更1 行追加1 行削除
  1. 1 1
      psiphon/tunnel.go

+ 1 - 1
psiphon/tunnel.go

@@ -715,7 +715,7 @@ func (tunnel *Tunnel) operateTunnel(tunnelOwner TunnelOwner) {
 			tunnel.serverContext.tunnelNumber,
 			tunnel.serverEntry.IpAddress,
 			tunnel.serverContext.serverHandshakeTimestamp,
-			fmt.Sprintf("%d", tunnel.startTime.Sub(time.Now())),
+			fmt.Sprintf("%d", time.Now().Sub(tunnel.startTime)),
 			totalSent,
 			totalReceived)
 		if err != nil {