Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 08:08:46 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432819 - in head/x11/i3status: . files
Message-ID:  <201701300808.v0U88kb6047328@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Jan 30 08:08:46 2017
New Revision: 432819
URL: https://svnweb.freebsd.org/changeset/ports/432819

Log:
  Fix the deciKelvin to Celsius conversion

Added:
  head/x11/i3status/files/patch-src_print__cpu__temperature.c   (contents, props changed)
Modified:
  head/x11/i3status/Makefile

Modified: head/x11/i3status/Makefile
==============================================================================
--- head/x11/i3status/Makefile	Mon Jan 30 07:28:29 2017	(r432818)
+++ head/x11/i3status/Makefile	Mon Jan 30 08:08:46 2017	(r432819)
@@ -2,6 +2,7 @@
 
 PORTNAME=	i3status
 PORTVERSION=	2.11
+PORTREVISION=	1
 CATEGORIES=	x11
 MASTER_SITES=	http://i3wm.org/i3status/
 

Added: head/x11/i3status/files/patch-src_print__cpu__temperature.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/i3status/files/patch-src_print__cpu__temperature.c	Mon Jan 30 08:08:46 2017	(r432819)
@@ -0,0 +1,11 @@
+--- src/print_cpu_temperature.c.orig	2017-01-30 07:58:44 UTC
++++ src/print_cpu_temperature.c
+@@ -13,7 +13,7 @@
+ #include <err.h>
+ #include <sys/types.h>
+ #include <sys/sysctl.h>
+-#define TZ_ZEROC 2732
++#define TZ_ZEROC 2731
+ #define TZ_KELVTOC(x) (((x)-TZ_ZEROC) / 10), abs(((x)-TZ_ZEROC) % 10)
+ #define TZ_AVG(x) ((x)-TZ_ZEROC) / 10
+ #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701300808.v0U88kb6047328>