summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xfce-extra/xfce4-battery/files/xfce4-battery-0.5.0-freebsd.patch')
-rw-r--r--xfce-extra/xfce4-battery/files/xfce4-battery-0.5.0-freebsd.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/xfce-extra/xfce4-battery/files/xfce4-battery-0.5.0-freebsd.patch b/xfce-extra/xfce4-battery/files/xfce4-battery-0.5.0-freebsd.patch
deleted file mode 100644
index b4644fef4b3e..000000000000
--- a/xfce-extra/xfce4-battery/files/xfce4-battery-0.5.0-freebsd.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- panel-plugin/battery.c.orig Wed Jan 24 20:42:09 2007
-+++ panel-plugin/battery.c Wed Jan 24 20:46:51 2007
-@@ -378,6 +378,7 @@
- rate = last_rate;
- }
-
-+#ifdef __linux__
- charge = (((float)ccapacity)/((float)lcapacity))*100;
-
- if ( last_acline )
-@@ -389,6 +390,20 @@
- time_remaining = 0;
-
- last_acline = acline;
-+
-+#elif __FreeBSD__
-+ charge = acpistate->percentage;
-+
-+ if ( last_acline )
-+ time_remaining = acpistate->rtime;
-+ else
-+ time_remaining = acpistate->rtime;
-+
-+ if ( time_remaining < 0 )
-+ time_remaining = 0;
-+
-+ last_acline = acline;
-+#endif
-
- }
- #ifdef __linux__
-