php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61316 data array shouldn't use timestamp as key in rrd_lastupdate
Submitted: 2012-03-07 10:02 UTC Modified: 2012-06-04 09:52 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: david at nfrance dot com Assigned: koubel (profile)
Status: Closed Package: rrd (PECL)
PHP Version: 5.3.10 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at nfrance dot com
New email:
PHP Version: OS:

 

 [2012-03-07 10:02 UTC] david at nfrance dot com
Description:
------------
When using rrd_lastupdate on a rrd file with multiples values, the data array only contain one value, but the ds_navm array contain multiples values.

The data array shouldn't use timestamp as key in rrd_lastupdate, but the ds_name (or ds_index), to support multiple values.



Test script:
---------------
$values = rrd_lastupdate("my_multiples_values_rrd_file");;
print_r($values);

Expected result:
----------------
The data array should contain values for each ds.

Actual result:
--------------
The data array contain only one value and the index is the timestamp.

Patches

rrd_lastupdate_use_ds_name_as_index (last revision 2012-03-07 10:04 UTC by david at nfrance dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-04 09:10 UTC] koubel@php.net
Simple array will be used. When the associative array would be used, data source names in the return array (under "ds_navm" key) would be useless and duplicate. It's little BC break also.
 [2012-06-04 09:10 UTC] koubel@php.net
-Status: Open +Status: Assigned -Type: Feature/Change Request +Type: Bug
 [2012-06-04 09:11 UTC] koubel@php.net
-Assigned To: +Assigned To: koubel
 [2012-06-04 09:18 UTC] koubel@php.net
Automatic comment from SVN on behalf of koubel
Revision: http://svn.php.net/viewvc/?view=revision&revision=325960
Log: rrd_lastupdate - bug with multiple data source #61316
 [2012-06-04 09:52 UTC] koubel@php.net
fixed, new version (1.1.0 because of BC break) will be released.
 [2012-06-04 09:52 UTC] koubel@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 03:01:28 2025 UTC