Fix accidental replace of watt by currentWatts
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Database
|
||||
bool AddRecord(long const epoch, char const * currentWatts, double const kwh)
|
||||
{
|
||||
++insertions;
|
||||
jsonStream << "{\"time\":" << epoch << ",\"currentWatts\":" << currentWatts << ",\"kwh\":" << kwh << "},";
|
||||
jsonStream << "{\"time\":" << epoch << ",\"watt\":" << currentWatts << ",\"kwh\":" << kwh << "},";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user