private void doRefresh() {

            if (System.currentTimeMillis() - lastRefresh < MAX_REFRESH_TIME) {
                return;
            }

            long bytesReceived = 0;
            long bytesSent = 0;
            long packetsReceived = 0;
            long packetsSent = 0;

            for (NetworkIF nif : networks) {
                nif.updateAttributes();
                bytesReceived += nif.getBytesRecv();
                bytesSent += nif.getBytesSent();
                packetsReceived += nif.getPacketsRecv();
                packetsSent += nif.getPacketsSent();

            }
            this.bytesReceived = bytesReceived;
            this.bytesSent = bytesSent;
            this.packetsReceived = packetsReceived;
            this.packetsSent = packetsSent;

            this.lastRefresh = System.currentTimeMillis();
        }
ref https://github.com/jrask/micrometer-oshi-binder
@author intr3p1d
collector-monitor/src/main/java/com/navercorp/pinpoint/collector/monitor/micrometer/binder/NetworkMetricsBinder.java