private static int getMatchingArchiveIndex(RrdDb rrd1, int arcIndex, RrdDb rrd2) { Archive archive = rrd1.getArchive(arcIndex); ConsolFun consolFun = archive.getConsolFun(); int steps = archive.getSteps(); try { return(rrd2.getArcIndex(consolFun, steps)); } catch (ArgumentException e) { return(-1); } }
private static int getMatchingArchiveIndex(RrdDb rrd1, int arcIndex, RrdDb rrd2) { Archive archive = rrd1.getArchive(arcIndex); ConsolFun consolFun = archive.getConsolFun(); int steps = archive.getSteps(); try { return rrd2.getArcIndex(consolFun, steps); } catch (ArgumentException e) { return -1; } }