Browse code

Fix off-by-one error in handling lastSent message

Natasha Kerensikova authored on28/03/2016 22:29:19
Showing1 changed files
... ...
@@ -363,11 +363,9 @@ handle_last_sent(Tuple *tuple) {
363 363
 
364 364
 	minute_index = 0;
365 365
 	minute_data_size = 0;
366
-	minute_last = ikey * 60;
366
+	minute_last = ikey ? (ikey + 1) * 60 : 0;
367 367
 	set_modal_mode(false);
368
-
369
-	if (load_minute_data_page(ikey * 60))
370
-		send_next_line();
368
+	send_next_line();
371 369
 }
372 370
 
373 371
 static void