LLNL / lmt

Lustre Monitoring Tools
GNU General Public License v2.0
67 stars 21 forks source link

remove duplicate code for metric versions #58

Open defaziogiancarlo opened 2 years ago

defaziogiancarlo commented 2 years ago

There are functions that differ by only a metric version number. These duplicated (or triplicated or more) functions could be a single function. The metric version would have to get passed as an argument more than it currently is.

A good example is lmt_mdt_decode_v2_mdtinfo and lmt_mdt_decode_v3_mdtinfo.