API - port bits graph

Just tried this using a script from someone on this forum:

now=date +%s
daysecs=86400
weeksecs=604800
dayago=$((now - daysecs))
weekago=$((now - weeksecs))

curl -H “X-Auth-Token: XYZ” http://localhost/api/v0/portgroups/multiport/bits/320&from=$dayago&to=$now > test.png

I’m still seeing same graphs as if i didn’t specify from and to values :frowning: