Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bucky.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ exportDef = ->
tagOptions[key] = true
else if tagOptions[key]?.toString().toLowerCase is 'false'
tagOptions[key] = null

options = extend {}, defaults, tagOptions

TYPE_MAP =
'timer': 'ms'
'gauge': 'g'
Expand Down Expand Up @@ -171,11 +171,11 @@ exportDef = ->
sameOrigin = false
else
# Relative URL

sameOrigin = true

sendStart = now()

body = ''
for name, val of data
body += "#{ name }:#{ val }\n"
Expand Down Expand Up @@ -227,7 +227,7 @@ exportDef = ->
out[key] = "#{ value }|#{ TYPE_MAP[point.type] }"

if point.count isnt 1
out[key] += "@#{ round(1 / point.count, 5) }"
out[key] += "|@#{ round(1 / point.count, 5) }"

makeRequest out

Expand Down
2 changes: 1 addition & 1 deletion bucky.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bucky.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.