Skip to content

Instantly share code, notes, and snippets.

@niknah
niknah / cputemp.c
Last active February 3, 2019 01:32
This is a simple alternative to thermald. If you are not happy with thermald, try this instead.
// This software was written by Naoki Shibata in 2018. https://gist.github.com/shibatch
// No copyright is claimed, and the software is hereby placed in the public domain.
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int setFreq(double d) {