From c2cfa3dbce9139b78e59b4c43c6a38f58b53de62 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/program@34 a5681a0c-68f1-0310-ab6d-d61299d08faa --- PROJECTS | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 PROJECTS diff --git a/PROJECTS b/PROJECTS new file mode 100644 index 0000000..dbba94b --- /dev/null +++ b/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