mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-25 12:29:44 +00:00
Fixed delay/vkey pattern matching, fixed another time conversion error
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
return [[NSString alloc] initWithFormat:@"%@ delay: %ld ms", [self class], _delay];
|
||||
return [[NSString alloc] initWithFormat:@"%@ delay: %ld ms", self.class, _delay];
|
||||
}
|
||||
|
||||
- (instancetype)initWithDelay:(NSUInteger)delay {
|
||||
@@ -35,7 +35,8 @@
|
||||
}
|
||||
|
||||
- (void)execute {
|
||||
usleep((useconds_t)(_delay*NSEC_PER_MSEC));
|
||||
/* milliseconds * 10000 = microseconds */
|
||||
usleep((useconds_t)(_delay*1000));
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user