private static JiffiesAndCpus getTotalSystemJiffies() {
        try {
            BufferedReader in = new BufferedReader(new FileReader("/proc/stat"));
            return getTotalSystemJiffies(in);
        } catch (FileNotFoundException ex) {
            log.log(Level.SEVERE, "Unable to open stat file", ex);
            return new JiffiesAndCpus();
        }
    }
@Test
    public
    void testTotalJiffies() {
        SystemPoller.JiffiesAndCpus first = SystemPoller.getTotalSystemJiffies(new BufferedReader(new StringReader(totalStats[0])));
        SystemPoller.JiffiesAndCpus second = SystemPoller.getTotalSystemJiffies(new BufferedReader(new StringReader(totalStats[1])));
        assertEquals(8, first.cpus);
        assertEquals(first.cpus, second.cpus);
        assertEquals(142828460L, first.jiffies);
        assertEquals(143096563L, second.jiffies);
        assertEquals(0.05601124593795943, first.ratioSingleCoreJiffies(1000000), DELTA);
        assertEquals(0.05590630433241083, second.ratioSingleCoreJiffies(1000000), DELTA);
        SystemPoller.JiffiesAndCpus diff = second.diff(first);
        assertEquals(8, diff.cpus);
        assertEquals(268103L, diff.jiffies);
        assertEquals(2.9839278187860634, diff.ratioSingleCoreJiffies(100000), DELTA);
        assertEquals(0.3729909773482579, diff.ratioJiffies(100000), DELTA);
    }