consumption

master
varun 2 years ago
parent cb7695b84d
commit cb7bdf9c2a

@ -767,7 +767,8 @@ exports.consumption = async (req, reply) => {
const tankname = tank.tankName
const consumption = (waterlevel_at_midnight+total_water_added_from_midnight)-waterlevel
const newWaterLevel = Math.floor(consumption);
const newWaterLevel1 = Math.floor(consumption);
const newWaterLevel=Math.abs(newWaterLevel1)
tankData.push({ tankname, waterLevel: newWaterLevel });

Loading…
Cancel
Save