bool Statsdb::processList ( ) { if ( m_list.isEmpty() ) m_done = true; else { // update start key for next disk read m_list.getLastKey ( (char *)&m_startKey ); // add one m_startKey += 1; // done if wrapped if ( m_startKey.n0 == 0LL && m_startKey.n1 == 0 ) m_done = true; } // // all these points are accumulated into 1-second buckets // long n = (long)sizeof(s_labels)/ sizeof(Label); for ( long i = 0 ; i < n ; i++ ) { // get the label we want to graph Label *bb = &s_labels[i]; // add the points to m_sb1 if ( ! addPointsFromList ( bb ) ) return false; } if ( ! addEventPointsFromList ( ) ) return false; return true; }
bool Statsdb::processList ( ) { if ( m_list.isEmpty() ) m_done = true; else { // update start key for next disk read m_list.getLastKey ( (char *)&m_startKey ); // add one m_startKey += 1; // done if wrapped if ( m_startKey.n0 == 0LL && m_startKey.n1 == 0 ) m_done = true; } // HACK: the user can request all of the events, it can // become quite large. so limit to 100 mb right now. if( m_sb3.length() > 100000000) { log("statsdb: truncating statsdb results."); m_done = true; } // // all these points are accumulated into 1-second buckets // int32_t n = (int32_t)sizeof(s_labels)/ sizeof(Label); for ( int32_t i = 0 ; i < n ; i++ ) { // get the label we want to graph Label *bb = &s_labels[i]; // add the points to m_sb1 if ( ! addPointsFromList ( bb ) ) return false; } if ( ! addEventPointsFromList ( ) ) return false; return true; }