@@ -6,7 +6,7 @@ pub const RUNNER_CTL_FIFO = "/tmp/runner.ctl.fifo";
66pub const RUNNER_ACK_FIFO = "/tmp/runner.ack.fifo" ;
77
88pub const Command = union (enum ) {
9- CurrentBenchmark : struct {
9+ ExecutedBenchmark : struct {
1010 pid : u32 ,
1111 uri : []const u8 ,
1212 },
@@ -26,7 +26,7 @@ pub const Command = union(enum) {
2626 allocator .free (data .name );
2727 allocator .free (data .version );
2828 },
29- .CurrentBenchmark = > | data | allocator .free (data .uri ),
29+ .ExecutedBenchmark = > | data | allocator .free (data .uri ),
3030 else = > {},
3131 }
3232 }
@@ -40,7 +40,7 @@ pub const Command = union(enum) {
4040 _ = fmt ;
4141 _ = options ;
4242 switch (self ) {
43- .CurrentBenchmark = > | data | try writer .print ("CurrentBenchmark {{ pid: {d}, uri: {s} }}" , .{ data .pid , data .uri }),
43+ .ExecutedBenchmark = > | data | try writer .print ("ExecutedBenchmark {{ pid: {d}, uri: {s} }}" , .{ data .pid , data .uri }),
4444 .StartBenchmark = > try writer .writeAll ("StartBenchmark" ),
4545 .StopBenchmark = > try writer .writeAll ("StopBenchmark" ),
4646 .Ack = > try writer .writeAll ("Ack" ),
@@ -52,8 +52,8 @@ pub const Command = union(enum) {
5252
5353 pub fn equal (self : Command , other : Command ) bool {
5454 return switch (self ) {
55- .CurrentBenchmark = > | self_data | switch (other ) {
56- .CurrentBenchmark = > | other_data | self_data .pid == other_data .pid and
55+ .ExecutedBenchmark = > | self_data | switch (other ) {
56+ .ExecutedBenchmark = > | other_data | self_data .pid == other_data .pid and
5757 std .mem .eql (u8 , self_data .uri , other_data .uri ),
5858 else = > false ,
5959 },
0 commit comments