aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-23 11:05:00 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-23 11:05:00 +0000
commit321f1faf2e536f36dc519cddda2db62a74e4fd48 (patch)
treec3486ec04d6b0aaab1b089b129fda0e1bfc4bdb5
parenta067819af2071913df2acdf2a4ef444ef7333914 (diff)
downloadenigma2-321f1faf2e536f36dc519cddda2db62a74e4fd48.tar.gz
enigma2-321f1faf2e536f36dc519cddda2db62a74e4fd48.zip
save epgcache to hdd on shutdown
-rw-r--r--lib/dvb/epgcache.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp
index 6d811194..e48db957 100644
--- a/lib/dvb/epgcache.cpp
+++ b/lib/dvb/epgcache.cpp
@@ -628,7 +628,6 @@ void eEPGCache::thread()
void eEPGCache::load()
{
-#if 0
FILE *f = fopen("/hdd/epg.dat", "r");
if (f)
{
@@ -637,6 +636,7 @@ void eEPGCache::load()
int size=0;
int cnt=0;
bool md5ok=false;
+#if 0
if (!md5_file("/hdd/epg.dat", 1, md5))
{
FILE *f = fopen("/hdd/epg.dat.md5", "r");
@@ -649,6 +649,7 @@ void eEPGCache::load()
}
}
if ( md5ok )
+#endif
{
char text1[13];
fread( text1, 13, 1, f);
@@ -688,12 +689,10 @@ void eEPGCache::load()
fclose(f);
}
}
-#endif
}
void eEPGCache::save()
{
-#if 0
struct statfs s;
off64_t tmp;
if (statfs("/hdd", &s)<0)
@@ -740,6 +739,7 @@ void eEPGCache::save()
eDebug("%d events written to /hdd/epg.dat", cnt);
eventData::save(f);
fclose(f);
+#if 0
unsigned char md5[16];
if (!md5_file("/hdd/epg.dat", 1, md5))
{
@@ -750,8 +750,8 @@ void eEPGCache::save()
fclose(f);
}
}
- }
#endif
+ }
}
eEPGCache::channel_data::channel_data(eEPGCache *ml)