Permalink
Browse files

Fix bug

  • Loading branch information...
felixge committed Oct 31, 2011
1 parent 0499f24 commit 3abc0999aa869f5d0705fc94add023bbf25a7bee
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/carbon_client.js
View
@@ -38,7 +38,7 @@ CarbonClient.createClient = function(dsn) {
};
CarbonClient.prototype.write = function(path, value, timestamp, cb) {
- if (arguments.length === 3) {
+ if (typeof timestamp === 'function') {
cb = timestamp;
timestamp = Date.now();
}

0 comments on commit 3abc099

Please sign in to comment.