hi there, your history is sketchy but you need to find the cause for the edema of your legs. Edema can be caused due to many causes but the most common ones being anemia
, postural or in any generalized infection. You are already being treated for infection. You need to get a routine blood exam done to rule out anemia or a malnurished state, get a thyroid function test done, get a kidney profile done and if all seems normal then you may try using pnumatic socks to take or the postural edema. If you are in a job where you have to sit for along time in one place with your leg suspended then you could try keeping it in an elevated condition from time to time and also taking small walks in between every 2 hrs. You could try some passive exercises from sitting position like stretching your hamstrings or alternatively contracting and stretching your ankle joint so as to exercise your calf muscle. Hope these are helpful tips .take care.