X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=blobdiff_plain;f=file.c;h=e0163909e9160f59f1f74ea667e50ec52684ef30;hp=3f06259faa1cd7087ef926e1cdd8a60b4d1bf9c1;hb=4912951e97b4040941944e1df70a91366a6a5559;hpb=ba31e37063308ab74b282db983557797d05f59d1 diff --git a/file.c b/file.c index 3f06259..e016390 100644 --- a/file.c +++ b/file.c @@ -10,7 +10,7 @@ static int readfile(const char *filename, struct memblock *mem) { - int ret, fd = open(filename, O_RDONLY); + int ret, fd; struct stat st; char *buf; @@ -140,7 +140,7 @@ static void add_sample_data(struct sample *sample, enum csv_format type, double sample->temperature.mkelvin = F_to_mkelvin(val); break; case CSV_PRESSURE: - sample->cylinderpressure.mbar = psi_to_mbar(val); + sample->cylinderpressure.mbar = psi_to_mbar(val*4); break; } }