Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

My litle adds

2009-01-07
2013-02-23
  • data-stream.ru
    data-stream.ru
    2009-01-07

    I added support SQL columns "activ" to do Jobs readable and chandable, but inactiv.
    Please, support this functioin in your future versions. It's needed for hosting contol panels.

    struct Jobs {

    int id;

    int lastrun, nextrun;

    char *sec, *min, *hour, *day, *mon, *dow;

    int andor;

    int uid, gid, nic;

    char *cmd, *name;

    int runonce;

    int activ; /* <--- */

    Jobs *n;

    };

    after
    nw->runonce = atoi(row[15]);
    I added
    nw->activ = atoi(row[16]);

    And I change
    if ((tm >= s->nextrun) && (s->lastrun != tm))
    To
    if ((tm >= s->nextrun) && (s->lastrun != tm) && (s->activ == 1))

    P/S Fank you for your job. It's exclusive project!

     
    • himdel
      himdel
      2009-01-07

      Hey, thank you very much,
      you're right, that is quite useful, it will be in the next version (with some cosmetic changes if you don't mind (+ you might be happy to know, I'm putting you in CREDITS as the first person who's actually sent me a patch ;))).

      It would appear people are actually interested in this project so I will spend some time on it and hopefully get a more stable release out by March.