LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File atlas-hack.patch of Package libatlas3 (Project home:X0F:branches:multimedia)

Index: tune/sysinfo/masrch.c
===================================================================
--- tune/sysinfo/masrch.c.orig
+++ tune/sysinfo/masrch.c
@@ -113,7 +113,12 @@ double matime
    j = 0;
    for (i=0; i != NTIM; i++)
    {
-      assert( fscanf(fp, "%lf", &mflop[i]) );
+      if(fscanf(fp, "%lf", &mflop[i])==0) {
+         if (i>0)
+            mflop[i]=mflop[i-1];
+         else
+            assert(0);
+      }
    }
    fclose(fp);
 /*