Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

macapp: fixed script execer slightly

  • Loading branch information...
commit a6a0dbaebbc522781d301e716b6a6971e7500ddc 1 parent 5170482
@todbot authored
View
16 mac/Blink1Control/Blink1Control/B1SAppDelegate.m
@@ -69,7 +69,7 @@ @implementation B1SAppDelegate
NSTimeInterval inputInterval = 5.0f; // in seconds
NSTimeInterval iftttUpdateInterval = 15.0f;
-NSTimeInterval urlUpdateInterval = 30.0f;
+NSTimeInterval urlUpdateInterval = 15.0f;
// play pattern with restart
@@ -328,12 +328,12 @@ - (void) updateIftttInput: (NSMutableDictionary*) input
- (void) updateScriptInput: (NSMutableDictionary*)input
{
DLog(@"updateScriptInput");
- //NSTimeInterval lastTime = [[input valueForKey:@"lastTime"] doubleValue];
- //NSTimeInterval now = [[NSDate date] timeIntervalSince1970];
- //if( (now - lastTime) < 30 ) { // only update URLs every 30 secs
- // return;
- //}
- //[input setObject:[NSNumber numberWithInt:now] forKey:@"lastTime"];
+ NSTimeInterval lastTime = [[input valueForKey:@"lastTime"] doubleValue];
+ NSTimeInterval now = [[NSDate date] timeIntervalSince1970];
+ if( (now - lastTime) < 15 ) { // only update URLs every 15 secs
+ return;
+ }
+ [input setObject:[NSNumber numberWithInt:now] forKey:@"lastTime"];
NSString* path = [input objectForKey:@"arg1"];
@@ -392,7 +392,7 @@ - (void) updateNetloadInput: (NSMutableDictionary*) input
// ----------------------------------------------------------------------------
// the main deal for triggering color patterns
// ----------------------------------------------------------------------------
-// this is called every 10 secs via an NSTimer
+// this is called every 5 secs via an NSTimer
- (void) updateInputs
{
//DLog(@"updateInputs");
View
2  mac/Blink1Control/Blink1Control/Blink1Control-Info.plist
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.98</string>
+ <string>0.99</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Please sign in to comment.
Something went wrong with that request. Please try again.