Permalink
Browse files

[SignpostServer] Bug fix

Bug fix in HTTP server
  • Loading branch information...
sebastian committed May 21, 2012
1 parent 3c536b4 commit 327e45bc8da48f444d8763dacc6ddab9b83581e2
@@ -159,6 +159,8 @@ - (NSData *)dataResponseForHTTPServer:(id)sender
NSNumber *clientLatency = [NSNumber numberWithFloat:cd.clientLatency];
NSNumber *serverLatency = [NSNumber numberWithFloat:cd.serverLatency];
NSNumber *serverJitter = [cf currentJitterForHost:hostid];
+ if (serverJitter == nil)
+ serverJitter = [NSNumber numberWithInt:-1];
NSNumber *clientJitter = [NSNumber numberWithFloat:cd.clientPerceivedJitter];
NSArray *uk = [NSArray arrayWithObjects:@"id", @"downstream-bandwidth", @"upstream-bandwidth", @"latency-as-seen-by-client", @"latency-as-seen-by-server", @"jitter-as-seen-by-server", @"jitter-as-seen-by-client", nil];

0 comments on commit 327e45b

Please sign in to comment.