diff options
author | lioux <lioux@FreeBSD.org> | 2002-08-08 10:10:57 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-08-08 10:10:57 +0800 |
commit | f70be7e243238185fea2b84b3cc7aaf709028332 (patch) | |
tree | dc31d20adefd3a45498eefc04e29d16d867f45ad /misc/gkx86info/files | |
parent | 1ca6277a9ad78d285c5cfd16c254f4716ede3bfd (diff) | |
download | freebsd-ports-gnome-f70be7e243238185fea2b84b3cc7aaf709028332.tar.gz freebsd-ports-gnome-f70be7e243238185fea2b84b3cc7aaf709028332.tar.zst freebsd-ports-gnome-f70be7e243238185fea2b84b3cc7aaf709028332.zip |
New port gkx86info version 0.0.2: GKrellM plugin that simply prints
the current clock speed
Diffstat (limited to 'misc/gkx86info/files')
-rw-r--r-- | misc/gkx86info/files/patch-MHz.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/misc/gkx86info/files/patch-MHz.c b/misc/gkx86info/files/patch-MHz.c new file mode 100644 index 000000000000..0bd1afcea79e --- /dev/null +++ b/misc/gkx86info/files/patch-MHz.c @@ -0,0 +1,19 @@ +--- MHz.c.orig Sat Oct 6 05:41:06 2001 ++++ MHz.c Wed Aug 7 23:01:05 2002 +@@ -11,6 +11,7 @@ + */ + + #include <stdio.h> ++#include <stdlib.h> + #include <sys/time.h> + #include <string.h> + #include <unistd.h> +@@ -45,7 +46,7 @@ + microseconds = ((tvstop.tv_sec-tvstart.tv_sec)*1000000) + + (tvstop.tv_usec-tvstart.tv_usec); + +- buffer = malloc(sizeof(char)*512); ++ buffer = (char *) malloc(sizeof(char)*512); + sprintf(buffer, "%lldMHz", + (cycles[1]-cycles[0])/microseconds); + |