Skip to content

Commit

Permalink
Fix attribute constant (#1996)
Browse files Browse the repository at this point in the history
This commit fixes a misspelling in the attribute constants.

Signed-off-by: Venil Noronha <[email protected]>
  • Loading branch information
venilnoronha authored and istio-testing committed Oct 17, 2018
1 parent fdffa13 commit d94f3e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/istio/utils/attribute_names.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ struct AttributeName {
static const char kDestinationUID[];
static const char kDestinationNamespace[];
static const char kOriginIp[];
static const char kConnectionReceviedBytes[];
static const char kConnectionReceviedTotalBytes[];
static const char kConnectionReceivedBytes[];
static const char kConnectionReceivedTotalBytes[];
static const char kConnectionSendBytes[];
static const char kConnectionSendTotalBytes[];
static const char kConnectionDuration[];
Expand Down
4 changes: 2 additions & 2 deletions src/istio/control/tcp/attributes_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ void AttributesBuilder::ExtractReportAttributes(

ReportData::ReportInfo info;
report_data->GetReportInfo(&info);
builder.AddInt64(utils::AttributeName::kConnectionReceviedBytes,
builder.AddInt64(utils::AttributeName::kConnectionReceivedBytes,
info.received_bytes - last_report_info->received_bytes);
builder.AddInt64(utils::AttributeName::kConnectionReceviedTotalBytes,
builder.AddInt64(utils::AttributeName::kConnectionReceivedTotalBytes,
info.received_bytes);
builder.AddInt64(utils::AttributeName::kConnectionSendBytes,
info.send_bytes - last_report_info->send_bytes);
Expand Down
4 changes: 2 additions & 2 deletions src/istio/utils/attribute_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const char AttributeName::kDestinationPort[] = "destination.port";
const char AttributeName::kDestinationUID[] = "destination.uid";
const char AttributeName::kDestinationNamespace[] = "destination.namespace";
const char AttributeName::kOriginIp[] = "origin.ip";
const char AttributeName::kConnectionReceviedBytes[] =
const char AttributeName::kConnectionReceivedBytes[] =
"connection.received.bytes";
const char AttributeName::kConnectionReceviedTotalBytes[] =
const char AttributeName::kConnectionReceivedTotalBytes[] =
"connection.received.bytes_total";
const char AttributeName::kConnectionSendBytes[] = "connection.sent.bytes";
const char AttributeName::kConnectionSendTotalBytes[] =
Expand Down

0 comments on commit d94f3e4

Please sign in to comment.