[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[py-rrdtool-cvs] [Commit] py-rrdtool/src _rrdtoolmodule.c
From: |
Hye-Shik Chang <address@hidden> |
Subject: |
[py-rrdtool-cvs] [Commit] py-rrdtool/src _rrdtoolmodule.c |
Date: |
Wed, 08 Jan 2003 14:43:07 -0500 |
perky 03/01/08 14:43:07
Modified: src _rrdtoolmodule.c
Log:
Add ds_name of each DS to the map returned by rrdtool.info()
Submitted by: Matthew W. Samsonoff <address@hidden>
Revision Changes Path
1.10 +4 -3 py-rrdtool/src/_rrdtoolmodule.c
Index: _rrdtoolmodule.c
===================================================================
RCS file: /cvsroot/py-rrdtool/py-rrdtool/src/_rrdtoolmodule.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- _rrdtoolmodule.c 27 May 2002 19:48:25 -0000 1.9
+++ _rrdtoolmodule.c 8 Jan 2003 19:43:06 -0000 1.10
@@ -4,10 +4,10 @@
* RRDTool Python binding
*
* Author : Hye-Shik Chang <address@hidden>
- * Date : $Date: 2002/05/27 19:48:25 $
+ * Date : $Date: 2003/01/08 19:43:06 $
* Created : 23 May 2002
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
*
==========================================================================
* This file is part of py-rrdtool.
@@ -29,7 +29,7 @@
*/
static char *version =
-"$Id: _rrdtoolmodule.c,v 1.9 2002/05/27 19:48:25 perky Exp $";
+"$Id: _rrdtoolmodule.c,v 1.10 2003/01/08 19:43:06 perky Exp $";
#include "Python.h"
#include "rrd.h"
@@ -404,6 +404,7 @@
PyDict_SetItemString(ds, rrd.ds_def[i].ds_nam, d);
Py_DECREF(d);
+ DICTSET_STR(d, "ds_name", rrd.ds_def[i].ds_nam);
DICTSET_STR(d, "type", rrd.ds_def[i].dst);
DICTSET_CNT(d, "minimal_heartbeat",
rrd.ds_def[i].par[DS_mrhb_cnt].u_cnt);
DICTSET_VAL(d, "min", rrd.ds_def[i].par[DS_min_val].u_val);
- [py-rrdtool-cvs] [Commit] py-rrdtool/src _rrdtoolmodule.c,
Hye-Shik Chang <address@hidden> <=