| To: | kenj@xxxxxxxxxxxxxxxx |
|---|---|
| Subject: | Re: [pcp] pmlogger_daily daylight saving change fix and other goodies |
| From: | Nathan Scott <nscott@xxxxxxxxxx> |
| Date: | Thu, 27 Nov 2008 09:42:19 +1100 |
| Cc: | pcp@xxxxxxxxxxx |
| In-reply-to: | <1227690049.2540.13.camel@bozo> |
| References: | <1227690049.2540.13.camel@bozo> |
On Wed, 2008-11-26 at 20:00 +1100, Ken McDonell wrote:
> I don't have access to oss.sgi.com yet, so here is another patch that
> fixes the pmlogger_daily problem with daylight saving transitions.
Great - I look forward to the next daylight savings switch with
much less trepidation!
One question about the changes ...
@@ -567,10 +530,18 @@ s/^\([A-Za-z][A-Za-z0-9_]*\)=/export \1; \1=/p
fqdn=`pmhostname $host`
for log in $PCP_TMP_DIR/pmlogger/[0-9]*
do
- [ "$log" = "[0-9]*" ] && continue
+ case "$log"
+ in
+ *[0-9]*)
+ # no pmlogger running according to
$PCP_TMP_DIR/pmlogger,
+ # nothing to be done!
+ _unlock
This _unlock and continue pair looks a bit dubious. We're going
to "continue" the inner loop here not the outer one, which means
we'd potentially prematurely _unlock, wouldn't we?
+ continue
+ ;;
+ esac
cheers.
--
Nathan
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | pmlogger_daily daylight saving change fix and other goodies, Ken McDonell |
|---|---|
| Next by Date: | Re: [pcp] pmlogger_daily daylight saving change fix and other goodies, Ken McDonell |
| Previous by Thread: | pmlogger_daily daylight saving change fix and other goodies, Ken McDonell |
| Next by Thread: | Re: [pcp] pmlogger_daily daylight saving change fix and other goodies, Ken McDonell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |