Merge pull request #610 from birarda/domain-stats

rename argument for Logstash stat stash
This commit is contained in:
Stephen Birarda 2013-07-02 15:05:18 -07:00
commit 010e6e5570

View file

@ -45,12 +45,12 @@ bool Logstash::shouldSendStats() {
return shouldSendStats;
}
void Logstash::stashValue(char valueType, const char* key, float value) {
void Logstash::stashValue(char statType, const char* key, float value) {
static char logstashPacket[MAX_PACKET_SIZE];
// load up the logstash packet with the key and the passed float value
// send it to 4 decimal places
int numPacketBytes = sprintf(logstashPacket, "%c %s %.4f", valueType, key, value);
int numPacketBytes = sprintf(logstashPacket, "%c %s %.4f", statType, key, value);
AgentList *agentList = AgentList::getInstance();