Skip to content

Commit

Permalink
Update MessageThrottle.m
Browse files Browse the repository at this point in the history
  • Loading branch information
yulingtianxia committed May 24, 2019
1 parent 9738fc1 commit 89d3bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MessageThrottle/MessageThrottle.m
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ static void mt_handleInvocation(NSInvocation *invocation, MTRule *rule)
return;
}

NSTimeInterval now = [[NSDate date] timeIntervalSince1970];
NSTimeInterval now = CACurrentMediaTime();
switch (rule.mode) {
case MTPerformModeFirstly: {
if (now - rule.lastTimeRequest > rule.durationThreshold) {
Expand Down

0 comments on commit 89d3bd4

Please sign in to comment.