mirror of
https://git.freebsd.org/ports.git
synced 2025-07-09 05:19:16 -04:00
Fix download location for polling data.
PR: ports/66149 Submitted by: Aaron Dudek <adudek@gwu.edu>
This commit is contained in:
parent
55997583ca
commit
f85153bff6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109310
2 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
||||||
--- GetKp.orig Fri Apr 16 15:08:21 1999
|
--- GetKp.orig Fri Apr 16 15:08:21 1999
|
||||||
+++ GetKp Fri Apr 16 15:09:24 1999
|
+++ GetKp Tue Apr 13 20:06:19 2004
|
||||||
@@ -19,7 +19,7 @@
|
@@ -19,7 +19,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
- $grabcmd = "cd /tmp; wget --passive-ftp --tries 2 -q ftp://www.sec.noaa.gov/pub/indices/DGD.txt";
|
- $grabcmd = "cd /tmp; wget --passive-ftp --tries 2 -q ftp://www.sec.noaa.gov/pub/indices/DGD.txt";
|
||||||
+ $grabcmd = "cd /tmp; fetch -q ftp://www.sec.noaa.gov/pub/indices/DGD.txt";
|
+ $grabcmd = "cd /tmp; fetch -q ftp://ftp.sec.noaa.gov/pub/indices/DGD.txt";
|
||||||
system "$grabcmd";
|
system "$grabcmd";
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
# Add in very latest stuff
|
# Add in very latest stuff
|
||||||
#
|
#
|
||||||
- $grabcmd = "cd /tmp; wget --passive-ftp --tries 2 -q ftp://www.sec.noaa.gov/pub/latest/curind.txt";
|
- $grabcmd = "cd /tmp; wget --passive-ftp --tries 2 -q ftp://www.sec.noaa.gov/pub/latest/curind.txt";
|
||||||
+ $grabcmd = "cd /tmp; fetch -q ftp://www.sec.noaa.gov/pub/latest/curind.txt";
|
+ $grabcmd = "cd /tmp; fetch -q ftp://ftp.sec.noaa.gov/pub/latest/curind.txt";
|
||||||
system "$grabcmd";
|
system "$grabcmd";
|
||||||
%lmonstr = ( "Jan", 1, "Feb", 2, "Mar", 3, "Apr", 4, "May", 5, "Jun", 6, "Jul", 7, "Aug", 8, "Sep", 9, "Oct", 10, "Nov", 11, "Dec", 12);
|
%lmonstr = ( "Jan", 1, "Feb", 2, "Mar", 3, "Apr", 4, "May", 5, "Jun", 6, "Jul", 7, "Aug", 8, "Sep", 9, "Oct", 10, "Nov", 11, "Dec", 12);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- wmSpaceWeather.c.orig Thu Feb 18 17:57:45 1999
|
--- wmSpaceWeather.c.orig Thu Feb 18 17:57:45 1999
|
||||||
+++ wmSpaceWeather.c Wed Jun 18 03:08:57 2003
|
+++ wmSpaceWeather.c Tue Apr 13 20:06:41 2004
|
||||||
@@ -115,7 +115,7 @@ XEvent event;
|
@@ -115,7 +115,7 @@ XEvent event;
|
||||||
int i, n, s, k, m, dt1, dt2;
|
int i, n, s, k, m, dt1, dt2;
|
||||||
int Year, Month, Day, DayOfMonth, OldDayOfMonth;
|
int Year, Month, Day, DayOfMonth, OldDayOfMonth;
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
* Read in Kp values
|
* Read in Kp values
|
||||||
*/
|
*/
|
||||||
- if ((fp = fopen("/tmp/LatestKp.txt", "r")) != NULL){
|
- if ((fp = fopen("/tmp/LatestKp.txt", "r")) != NULL){
|
||||||
+ snprintf(FileName, sizeof(FileName), "%s/.wmSpaceWeatherReports/LatestKp.txt", getenv("HOME"));
|
+ snprintf(FileName, sizeof(FileName), "/tmp/LatestKp.txt", getenv("HOME"));
|
||||||
+ if ((fp = fopen(FileName, "r")) != NULL){
|
+ if ((fp = fopen(FileName, "r")) != NULL){
|
||||||
|
|
||||||
for (i=0; i<8; ++i){
|
for (i=0; i<8; ++i){
|
||||||
|
|
Loading…
Add table
Reference in a new issue