Distinguish between new devices and devices that have been unregistered
then registered again (this indication is displayed by "sadf -r" with
showhints option).
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
/* This is a newly registered interface. Previous stats are zero */
sdp = &sdpzero;
if (DISPLAY_HINTS(flags)) {
- printf(" [NEW]");
+ printf(" [%s]", j == -1 ? "NEW" : "BCK");
}
}
else {
/* This is a newly registered interface. Previous stats are zero */
sndp = &sndzero;
if (DISPLAY_HINTS(flags)) {
- printf(" [NEW]");
+ printf(" [%s]", j == -1 ? "NEW" : "BCK");
}
}
else {
/* This is a newly registered interface. Previous stats are zero */
snedp = &snedzero;
if (DISPLAY_HINTS(flags)) {
- printf(" [NEW]");
+ printf(" [%s]", j == -1 ? "NEW" : "BCK");
}
}
else {