Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph/api/graph.go中的代码怎么理解 #38

Open
reymont opened this issue Jan 18, 2017 · 0 comments
Open

graph/api/graph.go中的代码怎么理解 #38

reymont opened this issue Jan 18, 2017 · 0 comments

Comments

@reymont
Copy link

reymont commented Jan 18, 2017

`nowTs := time.Now().Unix()
lastUpTs := nowTs - nowTs%int64(step)
rra1StartTs := lastUpTs - int64(rrdtool.RRA1PointCnt*step)

// consolidated, do not merge
if start_ts < rra1StartTs {
	resp.Values = datas
	goto _RETURN_OK
}`

rra1StartTs 代表什么意思?怎样理解这段代码?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant