mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 13:55:58 +00:00
Add logging on file sizes
This commit is contained in:
1 parent
5bf8469732
commit
3926f08a36
4 files changed
+1535
-1532
No files matched your search
@@ -505,6 +505,8 @@ class InboundNearbyConnection: NearbyConnection {
|
|||||||
#endif
|
#endif
|
||||||
filesToBeReceived[id]!.progress = progress
|
filesToBeReceived[id]!.progress = progress
|
||||||
filesToBeReceived[id]!.created = true
|
filesToBeReceived[id]!.created = true
|
||||||
|
|
||||||
|
log("[InboundNearbyConnection] Accepted file with size \(file.meta.size)")
|
||||||
}
|
}
|
||||||
|
|
||||||
var frame = Sharing_Nearby_Frame()
|
var frame = Sharing_Nearby_Frame()
|
||||||
|
|||||||
@@ -348,9 +348,10 @@ class OutboundNearbyConnection: NearbyConnection {
|
|||||||
try queue.append(OutgoingFileTransfer(url: url, payloadID: meta.payloadID, handle: FileHandle(forReadingFrom: url), totalBytes: meta.size, currentOffset: 0))
|
try queue.append(OutgoingFileTransfer(url: url, payloadID: meta.payloadID, handle: FileHandle(forReadingFrom: url), totalBytes: meta.size, currentOffset: 0))
|
||||||
introduction.v1.introduction.fileMetadata.append(meta)
|
introduction.v1.introduction.fileMetadata.append(meta)
|
||||||
totalBytesToSend += meta.size
|
totalBytesToSend += meta.size
|
||||||
|
|
||||||
|
log("[OutboundNearbyConnection] Sending file with \(meta.size) bytes")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log("[OutboundNearbyConnection] Sent introduction: \(introduction)")
|
|
||||||
try sendTransferSetupFrame(introduction)
|
try sendTransferSetupFrame(introduction)
|
||||||
|
|
||||||
currentState = .sentIntroduction
|
currentState = .sentIntroduction
|
||||||
|
|||||||
@@ -908,8 +908,8 @@
|
|||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 58;
|
SHARED_BUILD = 59;
|
||||||
SHARED_VERSION = 1.11.1;
|
SHARED_VERSION = 1.12;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
@@ -970,8 +970,8 @@
|
|||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
MTL_FAST_MATH = YES;
|
MTL_FAST_MATH = YES;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
SHARED_BUILD = 58;
|
SHARED_BUILD = 59;
|
||||||
SHARED_VERSION = 1.11.1;
|
SHARED_VERSION = 1.12;
|
||||||
SWIFT_COMPILATION_MODE = wholemodule;
|
SWIFT_COMPILATION_MODE = wholemodule;
|
||||||
SWIFT_EMIT_LOC_STRINGS = YES;
|
SWIFT_EMIT_LOC_STRINGS = YES;
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
SWIFT_OPTIMIZATION_LEVEL = "-O";
|
||||||
|
|||||||
+1527
-1527
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user