diff --git a/src/homemade_speedstep.c b/src/homemade_speedstep.c index 5711f7d..34286e5 100644 --- a/src/homemade_speedstep.c +++ b/src/homemade_speedstep.c @@ -183,7 +183,9 @@ int main(int argc, char** argv){ FILE* curtempfile; /* from here onwards an infinite while loop should start */ while((curtempfile = fopen(CURTEMPPATH, "r")) != NULL){ - timepassed++; + if (timepassed < 61){ + timepassed++; + } char* char_temperature = malloc(sizeof(char) * 8); getfilec(curtempfile, char_temperature); newlinetonullbyte(char_temperature);