Fix accidental replace of watt by currentWatts

This commit is contained in:
2022-09-14 20:27:27 +02:00
parent dbd29d1ba2
commit cb2aef0674

View File

@@ -30,7 +30,7 @@ namespace Database
bool AddRecord(long const epoch, char const * currentWatts, double const kwh) bool AddRecord(long const epoch, char const * currentWatts, double const kwh)
{ {
++insertions; ++insertions;
jsonStream << "{\"time\":" << epoch << ",\"currentWatts\":" << currentWatts << ",\"kwh\":" << kwh << "},"; jsonStream << "{\"time\":" << epoch << ",\"watt\":" << currentWatts << ",\"kwh\":" << kwh << "},";
return true; return true;
} }