From 542a2626e8d72c19be5f734db755a84a02ecee69 Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 15 Mar 2001 19:43:04 +0000 Subject: [PATCH] added PROJECTS file git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@34 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/PROJECTS | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 program/PROJECTS diff --git a/program/PROJECTS b/program/PROJECTS new file mode 100644 index 00000000..dbba94b7 --- /dev/null +++ b/program/PROJECTS @@ -0,0 +1,46 @@ +NEW RRD DATAFORMAT with Accessor Functions +========================================== + +Interested: + +Tobias Oetiker +Jake Brutlag +- updating rrd_update to use accessor fks +Karl Schilke +- changeing data access to mmap + + +Plan: + +Encapsulating access to the RRD files through +special accessor functions which provide +access to the datastructures within the +RRDfiles. + +pseudo code by Jake + +For example, here is a current code block from rrd_update.c: + + for (i=0;ids_cnt;i++) { + if(isnan(pdp_new[i])) + rrd.pdp_prep[i].scratch[PDP_unkn_sec_cnt].u_cnt += interval; + else + rrd.pdp_prep[i].scratch[PDP_val].u_val+= pdp_new[i]; + } + +This could read: + + for (i=0 ; i < getDSCount(&rrd) ;i++) { + if(isnan(pdp_new[i])) { + temp = getPDPParam(&rrd, i, PDP_unkn_sec_cnt); + temp.u_cnt += interval; + setPDPParam(&rrd, i, PDP_unkn_sec_cnt, temp); + } else { + temp = getPDPParam(&rrd, i, PDP_val); + temp.u_val += pdp_new[i]; + setPDPParam(&rrd, i, PDP_val, temp); + } + } + + + -- 2.30.2