[Swift-commit] cog r3478

swift at ci.uchicago.edu swift at ci.uchicago.edu
Tue Sep 25 13:20:14 CDT 2012


------------------------------------------------------------------------
r3478 | hategan | 2012-09-25 13:18:54 -0500 (Tue, 25 Sep 2012) | 1 line

proper encoding of long value in heartbeat reply
------------------------------------------------------------------------
Index: modules/provider-coaster/resources/worker.pl
===================================================================
--- modules/provider-coaster/resources/worker.pl	(revision 3477)
+++ modules/provider-coaster/resources/worker.pl	(working copy)
@@ -1107,7 +1107,7 @@
 	my ($tag, $timeout, $msgs) = @_;
 	$LAST_HEARTBEAT = time();
 	my $ts = int(time() * 1000);
-	queueReply($tag, pack("V", $ts));
+	queueReply($tag, pack("VV", ($ts & 0xffffffff), ($ts >> 32)));
 }
 
 sub workershellcmd {



More information about the Swift-commit mailing list