Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Dec 29, 2021
1 parent 4547807 commit 8ffe2d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 47 deletions.
47 changes: 0 additions & 47 deletions Work Hours/Extensions/NSView.swift

This file was deleted.

3 changes: 3 additions & 0 deletions Work Hours/ReportsGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ enum Events {
}

static func generateReport(formatter: DateFormatter) -> [Report]? {

os_log("Start, generateReport")
var data: [String: Int] = [:]
guard let logFile = logFile else {
return nil
Expand Down Expand Up @@ -135,6 +137,7 @@ enum Events {
// if formatter.string(from: startTimestamp!) == formatter.string(from: endTimestamp!) {
let elapsed = Int(endTimestamp!.timeIntervalSince(startTimestamp!))
let key = formatter.string(from: startTimestamp!)
os_log("Elapsed %s, %s > %d", startTimestamp!.debugDescription, endTimestamp!.debugDescription, elapsed)
if let val = data[key] {
data[key] = elapsed + val
} else {
Expand Down

0 comments on commit 8ffe2d9

Please sign in to comment.