Skip to content

Commit 3982b8c

Browse files
authored
Update InfluxData.h
better naming
1 parent c8dbfe0 commit 3982b8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

InfluxData.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class InfluxData {
1818
_values = (_values == "") ? (" ") : (_values += ",");
1919
_values += key + "=" + String(value);
2020
}
21-
void setTime(long int value)
21+
void setTimestamp(long int seconds)
2222
{
23-
_time = " " + String(value) + "000000000";
23+
_timestamp = " " + String(seconds) + "000000000";
2424
}
2525

2626
String toString() const { return _measurement + _tags + _values + _time; }
@@ -29,5 +29,5 @@ class InfluxData {
2929
String _measurement;
3030
String _tags;
3131
String _values;
32-
String _time;
32+
String _timestamp;
3333
};

0 commit comments

Comments
 (0)