Skip to content

Commit

Permalink
[gui] special madrid handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Mar 31, 2024
1 parent e0ba1e6 commit 20d4edb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions gui/tools/2graphite
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ for a in "$@" ; do
base=${base#frames.}
case "$base" in
muccc-*) dt=${base#muccc-};pfx="iridium";;
madrid-*) dt=${base#madrid-};pfx="madrid";;
hc610-*|patch-*) dt=${base#*-};dt=${dt%-*};pfx=miaoski.${base##*-};;
*) echo "UNKNOWN STATS: $base" >&2; continue ;;
esac
Expand Down
7 changes: 6 additions & 1 deletion gui/tools/iridium-do-parse
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ case "$input" in
*) precmd=cat;;
esac

case "$input" in
madrid*) fixcmd="sed 's/^[01]*//'";;
*) fixcmd=cat;;
esac

#if [ "$#" -gt 1 ] ; then
# echo -n "Parsing $base (+more) ..."
#else
Expand All @@ -127,7 +132,7 @@ esac
echo -n "Parsing $# ..."

date > ${pf}
${precmd} $* |grep ^R|cleanup_bits_timeseq.pl 2>${sef}.clean| /usr/bin/time -p -o ${tf} pypy3 ~/iridium-toolkit/iridium-parser.py --errorfile "${ef}" ${extra} --errorstats > ${of} 2>${sef}
${precmd} $* |eval ${fixcmd}|grep ^R|cleanup_bits_timeseq.pl 2>${sef}.clean| /usr/bin/time -p -o ${tf} pypy3 ~/iridium-toolkit/iridium-parser.py --errorfile "${ef}" ${extra} --errorstats > ${of} 2>${sef}
if [ "$?" -gt "0" ] ; then
echo ""
echo "ERROR: parser exited non-zero: $?"
Expand Down

0 comments on commit 20d4edb

Please sign in to comment.