From: Mike Taylor Date: Mon, 24 Jul 2006 16:16:29 +0000 (+0000) Subject: Store success/failure information in correct part of record. X-Git-Tag: CPAN-v1.02~54^2~1103 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=d3d987e7e5121e6a789880f5f99aba07ad942531;ds=sidebyside Store success/failure information in correct part of record. --- diff --git a/lib/ZOOM/IRSpy/Test/Ping.pm b/lib/ZOOM/IRSpy/Test/Ping.pm index 997cc17..a105a28 100644 --- a/lib/ZOOM/IRSpy/Test/Ping.pm +++ b/lib/ZOOM/IRSpy/Test/Ping.pm @@ -1,4 +1,4 @@ -# $Id: Ping.pm,v 1.8 2006-07-21 16:49:52 mike Exp $ +# $Id: Ping.pm,v 1.9 2006-07-24 16:16:29 mike Exp $ # See the "Main" test package for documentation @@ -35,10 +35,9 @@ sub maybe_connected { my $rec = $irspy->record($conn); $irspy->log("irspy_test", $conn->option("host"), ($ok ? "" : " not"), " connected"); - $conn->option(pod_omit => 1) if !$ok; - - $rec->append_entry("zeerex:serverInfo", "" . + $rec->append_entry("irspy:status", "" . isodate(time()) . ""); + $conn->option(pod_omit => 1) if !$ok; return 0; }