Skip to content

Commit

Permalink
Merge pull request BrikerMan#201 from Sunnyyoung/patch-1
Browse files Browse the repository at this point in the history
Update BMPlayerProtocols.swift
  • Loading branch information
BrikerMan authored Jan 16, 2018
2 parents 57aeb30 + 2810a2f commit 9c665f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/BMPlayerProtocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ extension BMPlayerControlView {
}

extension BMPlayer {
static func formatSecondsToString(_ secounds: TimeInterval) -> String {
if secounds.isNaN {
static func formatSecondsToString(_ seconds: TimeInterval) -> String {
if seconds.isNaN {
return "00:00"
}
let Min = Int(secounds / 60)
let Sec = Int(secounds.truncatingRemainder(dividingBy: 60))
let Min = Int(seconds / 60)
let Sec = Int(seconds.truncatingRemainder(dividingBy: 60))
return String(format: "%02d:%02d", Min, Sec)
}
}

0 comments on commit 9c665f5

Please sign in to comment.