@@ -620,7 +620,7 @@ namespace rubinius {
620
620
data += wrote;
621
621
bytes -= wrote;
622
622
623
- state->vm ()->metrics ().system_metrics . io_write_bytes += wrote;
623
+ state->vm ()->metrics ().system . write_bytes += wrote;
624
624
}
625
625
}
626
626
}
@@ -704,7 +704,7 @@ namespace rubinius {
704
704
return cNil;
705
705
}
706
706
707
- state->vm ()->metrics ().system_metrics . io_read_bytes += bytes_read;
707
+ state->vm ()->metrics ().system . read_bytes += bytes_read;
708
708
709
709
String* str = String::create (state, buf, bytes_read);
710
710
if (malloc_buf) free (malloc_buf);
@@ -753,7 +753,7 @@ namespace rubinius {
753
753
754
754
if (bytes_read == 0 ) return cNil;
755
755
756
- state->vm ()->metrics ().system_metrics . io_read_bytes += bytes_read;
756
+ state->vm ()->metrics ().system . read_bytes += bytes_read;
757
757
758
758
buffer->num_bytes (state, Fixnum::from (bytes_read));
759
759
return buffer;
@@ -808,7 +808,7 @@ namespace rubinius {
808
808
left -= cnt;
809
809
cur += cnt;
810
810
811
- state->vm ()->metrics ().system_metrics . io_write_bytes += cnt;
811
+ state->vm ()->metrics ().system . write_bytes += cnt;
812
812
}
813
813
}
814
814
@@ -836,7 +836,7 @@ namespace rubinius {
836
836
int n = ::write (descriptor_->to_native (), buf->byte_address (), buf_size);
837
837
if (n == -1 ) Exception::errno_error (state, " write_nonblock" );
838
838
839
- state->vm ()->metrics ().system_metrics . io_write_bytes += n;
839
+ state->vm ()->metrics ().system . write_bytes += n;
840
840
841
841
return Fixnum::from (n);
842
842
}
@@ -1487,7 +1487,7 @@ namespace rubinius {
1487
1487
}
1488
1488
memcpy (self->at_unused (), temp_buffer, bytes_read);
1489
1489
self->read_bytes (state, bytes_read);
1490
- state->vm ()->metrics ().system_metrics . io_read_bytes += bytes_read;
1490
+ state->vm ()->metrics ().system . read_bytes += bytes_read;
1491
1491
}
1492
1492
1493
1493
return Fixnum::from (bytes_read);
0 commit comments