Index: trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/plotdb.C	(revision 7406)
+++ trunk/MagicSoft/Mars/datacenter/macros/plotdb.C	(revision 7407)
@@ -339,5 +339,5 @@
 }
 
-void plotdb(TString from="", TString to="")
+int plotdb(TString from="", TString to="")
 {
     TEnv env("sql.rc");
@@ -347,5 +347,5 @@
     {
         cout << "ERROR - Connection to database failed." << endl;
-        return;
+        return 0;
     }
 
@@ -366,7 +366,9 @@
     d->SaveAsRoot("plotdb.root");
     d->SaveAsPS("plotdb.ps");
+
+    return 1;
 }
 
-void plotdb(Int_t period)
+int plotdb(Int_t period)
 {
     TEnv env("sql.rc");
@@ -376,5 +378,5 @@
     {
         cout << "ERROR - Connection to database failed." << endl;
-        return;
+        return 0;
     }
 
@@ -395,3 +397,5 @@
     d->SaveAsRoot("plotdb.root");
     d->SaveAsPS("plotdb.ps");
+
+    return 1;
 }
