Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 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;
    }
 }