Home | History | Annotate | Download | only in procstatlog

Lines Matching refs:new_stats

313 static void diff_stats(struct data *old_stats, struct data *new_stats) {
314 while (old_stats->name != NULL || new_stats->name != NULL) {
318 } else if (new_stats->name == NULL) {
321 compare = compare_data(old_stats, new_stats);
331 // new_stats is new
332 if (new_stats->value != NULL) {
333 printf("%s + %s\n", new_stats->name, new_stats->value);
335 ++new_stats;
338 if (new_stats->value == NULL) {
343 printf("%s + %s\n", new_stats->name, new_stats->value);
344 } else if (strcmp(old_stats->value, new_stats->value)) {
345 printf("%s = %s\n", new_stats->name, new_stats->value);
348 ++new_stats;
393 struct data *new_stats = read_stats(argv + 2, argc - 2);
394 diff_stats(old_stats, new_stats);
396 old_stats = new_stats;