Skip to content

Commit c266c87

Browse files
committed
(gfperf) allow auth methods except sharedsecret and gsi. support PHP7, contributed by Isibashi-san
1 parent 59abb22 commit c266c87

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bench/gfperf/gfperf-web/gnuplot.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private function get_timezone_offset() {
246246
$arr[5] += 1900;
247247
$arr[4]++;
248248
$iTztime = gmmktime($arr[2], $arr[1], $arr[0], $arr[4],
249-
$arr[3], $arr[5], $arr[8]);
249+
$arr[3], $arr[5]);
250250
return $iTztime-$iTime;
251251
}
252252

bench/gfperf/gfperf-wrapper/gfperf-wrapper.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ if [ $# -lt 2 ]; then
1414
exit 1
1515
fi
1616

17+
config=
1718
case $1 in
1819
sharedsecret) config=${Config_sharedsecret} ;;
1920
gsi_auth) config=${Config_gsi_auth} ;;
2021
gsi) config=${Config_gsi} ;;
21-
*) echo "type must be sharedsecret or gsi_auth or gsi." >&2
22-
exit 1 ;;
22+
*) ;;
2323
esac
2424

2525
if [ ! -f $Config_sharedsecret ]; then
@@ -40,6 +40,6 @@ if [ ! -f $Config_gsi ]; then
4040
echo "auth enable gsi *" >> $Config_gsi
4141
fi
4242

43-
export GFARM_CONFIG_FILE=$config
43+
[ X"$config" = X ] || export GFARM_CONFIG_FILE=$config
4444
shift
4545
exec $*

0 commit comments

Comments
 (0)