"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core-smart.c" between
stress-ng-0.13.04.tar.xz and stress-ng-0.13.05.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

core-smart.c  (stress-ng-0.13.04.tar.xz):core-smart.c  (stress-ng-0.13.05.tar.xz)
skipping to change at line 280 skipping to change at line 280
* count smart data changes between begin and end runs * count smart data changes between begin and end runs
*/ */
static size_t stress_smart_data_diff_count(stress_smart_dev_t *dev) static size_t stress_smart_data_diff_count(stress_smart_dev_t *dev)
{ {
size_t i, n; size_t i, n;
stress_smart_data_t *begin, *end; stress_smart_data_t *begin, *end;
begin = dev->data_begin; begin = dev->data_begin;
end = dev->data_end; end = dev->data_end;
if (!begin || !end) if (!begin || !begin->count)
return 0; return 0;
if (!begin->count || !end->count) if (!end || !end->count)
return 0; return 0;
for (n = 0, i = 0; i < begin->count; i++) { for (n = 0, i = 0; i < begin->count; i++) {
const stress_smart_raw_value_t *rv1 = &begin->values[i]; const stress_smart_raw_value_t *rv1 = &begin->values[i];
const uint8_t attr_id = rv1->attr_id; const uint8_t attr_id = rv1->attr_id;
size_t j; size_t j;
for (j = 0; j < end->count; j++) { for (j = 0; j < end->count; j++) {
const stress_smart_raw_value_t *rv2 = &end->values[j]; const stress_smart_raw_value_t *rv2 = &end->values[j];
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)