Separate change entries

This commit is contained in:
Christoph Hagen 2023-01-14 23:21:35 +01:00
parent 0d3a8dbe6e
commit bb3ed0e8c3

View File

@ -270,7 +270,7 @@ final class CapServer: ServerOwner {
df.dateFormat = "yy-MM-dd-HH-mm-ss" df.dateFormat = "yy-MM-dd-HH-mm-ss"
let dateString = df.string(from: Date()) let dateString = df.string(from: Date())
while let entry = entries.popLast() { while let entry = entries.popLast() {
let content = "\(dateString):\(entry.cap):\(entry.image)".data(using: .utf8)! let content = "\(dateString):\(entry.cap):\(entry.image)\n".data(using: .utf8)!
try handle.write(contentsOf: content) try handle.write(contentsOf: content)
} }
} }