Skip to content

Commit

Permalink
Merge pull request #18 from seokoka/patch-1
Browse files Browse the repository at this point in the history
Changed cast from int to float for message timestamp.
  • Loading branch information
h4cc committed Jun 11, 2014
2 parents ccaba9d + 09f3cd2 commit 3bfe69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gelf/Message.php
Expand Up @@ -244,7 +244,7 @@ public function toArray()
'full_message' => $this->getFullMessage(),
'host' => $this->getHost(),
// Ensure numeric values.
'timestamp' => (int)$this->getTimestamp(),
'timestamp' => (float)$this->getTimestamp(),
'level' => (int)$this->getLevel(),
)
);
Expand Down

0 comments on commit 3bfe69f

Please sign in to comment.